Creazione organizza
[YouAndWeb_TwoToc] / karma.conf.js
1 // Karma configuration
2 // http://karma-runner.github.io/0.10/config/configuration-file.html
3
4 module.exports = function(config) {
5   config.set({
6     // base path, that will be used to resolve files and exclude
7     basePath: '',
8
9     // testing framework to use (jasmine/mocha/qunit/...)
10     frameworks: ['jasmine'],
11
12     // list of files / patterns to load in the browser
13     files: [
14       // bower:js
15       'client/bower_components/jquery/dist/jquery.js',
16       'client/bower_components/angular/angular.js',
17       'client/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
18       'client/bower_components/angular-cookies/angular-cookies.js',
19       'client/bower_components/angular-resource/angular-resource.js',
20       'client/bower_components/angular-sanitize/angular-sanitize.js',
21       'client/bower_components/angular-translate/angular-translate.js',
22       'client/bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
23       'client/bower_components/angular-translate-storage-cookie/angular-translate-storage-cookie.js',
24       'client/bower_components/angular-ui-router/release/angular-ui-router.js',
25       'client/bower_components/lodash/dist/lodash.compat.js',
26       'client/bower_components/angular-mocks/angular-mocks.js',
27       // endbower
28       'client/app/app.js',
29       'client/app/app.coffee',
30       'client/app/**/*.js',
31       'client/app/**/*.coffee',
32       'client/components/**/*.js',
33       'client/components/**/*.coffee',
34       'client/app/**/*.jade',
35       'client/components/**/*.jade',
36       'client/app/**/*.html',
37       'client/components/**/*.html'
38     ],
39
40     preprocessors: {
41       '**/*.jade': 'ng-jade2js',
42       '**/*.html': 'html2js',
43       '**/*.coffee': 'coffee',
44     },
45
46     ngHtml2JsPreprocessor: {
47       stripPrefix: 'client/'
48     },
49
50     ngJade2JsPreprocessor: {
51       stripPrefix: 'client/'
52     },
53
54     
55
56     // list of files / patterns to exclude
57     exclude: [],
58
59     // web server port
60     port: 8080,
61
62     // level of logging
63     // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
64     logLevel: config.LOG_INFO,
65
66     // reporter types:
67     // - dots
68     // - progress (default)
69     // - spec (karma-spec-reporter)
70     // - junit
71     // - growl
72     // - coverage
73     reporters: ['spec'],
74
75     // enable / disable watching file and executing tests whenever any file changes
76     autoWatch: false,
77
78
79     // Start these browsers, currently available:
80     // - Chrome
81     // - ChromeCanary
82     // - Firefox
83     // - Opera
84     // - Safari (only Mac)
85     // - PhantomJS
86     // - IE (only Windows)
87     browsers: ['PhantomJS'],
88
89
90     // Continuous Integration mode
91     // if true, it capture browsers, run tests and exit
92     singleRun: false
93   });
94 };