|
1 | 1 | // Karma configuration |
2 | 2 |
|
3 | | -module.exports = function ( config ) { |
4 | | - config.set({ |
5 | | - // base path, that will be used to resolve files and exclude |
6 | | - basePath : '', |
7 | | - |
8 | | - frameworks : ['jasmine'], |
9 | | - |
10 | | - // list of files / patterns to load in the browser |
11 | | - files : [ |
12 | | - 'components/angular/angular.js', 'components/angular-cookies/angular-cookies.js', 'components/angular-mocks/angular-mocks.js', 'src/*.js', 'test/*.spec.js' |
13 | | - ], |
14 | | - |
15 | | - // list of files to exclude |
16 | | - exclude : [], |
17 | | - |
18 | | - // test results reporter to use |
19 | | - // possible values: 'dots', 'progress', 'junit' |
20 | | - reporters : ['progress'], |
21 | | - |
22 | | - // web server port |
23 | | - port : 9876, |
24 | | - |
25 | | - // cli runner port |
26 | | - runnerPort : 9100, |
27 | | - |
28 | | - // enable / disable colors in the output (reporters and logs) |
29 | | - colors : true, |
30 | | - |
31 | | - // level of logging |
32 | | - // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG |
33 | | - logLevel : 'karma.LOG_INFO', |
34 | | - |
35 | | - // enable / disable watching file and executing tests whenever any file changes |
36 | | - autoWatch : true, |
37 | | - |
38 | | - // Start these browsers, currently available: |
39 | | - // - Chrome |
40 | | - // - ChromeCanary |
41 | | - // - Firefox |
42 | | - // - Opera |
43 | | - // - Safari (only Mac) |
44 | | - // - PhantomJS |
45 | | - // - IE (only Windows) |
46 | | - browsers : ['Chrome', 'PhantomJS'], |
47 | | - |
48 | | - // If browser does not capture in given timeout [ms], kill it |
49 | | - captureTimeout : 60000, |
50 | | - |
51 | | - // Continuous Integration mode |
52 | | - // if true, it capture browsers, run tests and exit |
53 | | - singleRun : false |
54 | | - }); |
| 3 | +module.exports = function (config) { |
| 4 | + config.set({ |
| 5 | + // base path, that will be used to resolve files and exclude |
| 6 | + basePath: '', |
| 7 | + |
| 8 | + frameworks: ['jasmine'], |
| 9 | + |
| 10 | + // list of files / patterns to load in the browser |
| 11 | + files: [ |
| 12 | + 'components/angular/angular.js', 'components/angular-cookies/angular-cookies.js', 'components/angular-mocks/angular-mocks.js', 'src/*.js', 'test/*.spec.js' |
| 13 | + ], |
| 14 | + |
| 15 | + // list of files to exclude |
| 16 | + exclude: [], |
| 17 | + |
| 18 | + // test results reporter to use |
| 19 | + // possible values: 'dots', 'progress', 'junit' |
| 20 | + reporters: ['progress'], |
| 21 | + |
| 22 | + // web server port |
| 23 | + port: 9876, |
| 24 | + |
| 25 | + // cli runner port |
| 26 | + runnerPort: 9100, |
| 27 | + |
| 28 | + // enable / disable colors in the output (reporters and logs) |
| 29 | + colors: true, |
| 30 | + |
| 31 | + // level of logging |
| 32 | + // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG |
| 33 | + logLevel: 'karma.LOG_INFO', |
| 34 | + |
| 35 | + // enable / disable watching file and executing tests whenever any file changes |
| 36 | + autoWatch: true, |
| 37 | + |
| 38 | + // Start these browsers, currently available: |
| 39 | + // - Chrome |
| 40 | + // - ChromeCanary |
| 41 | + // - Firefox |
| 42 | + // - Opera |
| 43 | + // - Safari (only Mac) |
| 44 | + // - PhantomJS |
| 45 | + // - IE (only Windows) |
| 46 | + browsers: ['Chrome', 'PhantomJS'], |
| 47 | + |
| 48 | + // If browser does not capture in given timeout [ms], kill it |
| 49 | + captureTimeout: 60000, |
| 50 | + |
| 51 | + // Continuous Integration mode |
| 52 | + // if true, it capture browsers, run tests and exit |
| 53 | + singleRun: false |
| 54 | + }); |
55 | 55 | }; |
0 commit comments