|
1 | 1 | module.exports = function(config) { |
2 | | - config.set({ |
3 | | - // base path, that will be used to resolve files and exclude |
4 | | - basePath: '../', |
| 2 | + config.set({ |
| 3 | + // base path, that will be used to resolve files and exclude |
| 4 | + basePath: '../', |
5 | 5 |
|
6 | | - frameworks: ['jasmine'], |
| 6 | + frameworks: ['jasmine'], |
7 | 7 |
|
8 | | - // list of files / patterns to load in the browser |
9 | | - files: [ |
10 | | - 'test/lib/angular.1.3.18.js', |
11 | | - 'test/lib/angular-mocks.1.3.18.js', |
12 | | - 'dist/angular-validation.js', |
13 | | - 'dist/angular-validation-rule.js', |
14 | | - 'test/unit/*.js' |
15 | | - ], |
| 8 | + // list of files / patterns to load in the browser |
| 9 | + files: [ |
| 10 | + 'test/lib/angular.1.3.18.js', |
| 11 | + 'test/lib/angular-mocks.1.3.18.js', |
| 12 | + 'dist/angular-validation.js', |
| 13 | + 'dist/angular-validation-rule.js', |
| 14 | + 'test/unit/*.js' |
| 15 | + ], |
16 | 16 |
|
17 | | - // list of files to exclude |
18 | | - exclude: [ |
| 17 | + // list of files to exclude |
| 18 | + exclude: [], |
19 | 19 |
|
20 | | - ], |
| 20 | + preprocessors: { |
| 21 | + 'test/*.js': [] |
| 22 | + }, |
21 | 23 |
|
22 | | - preprocessors: { |
23 | | - 'test/*.js': [] |
24 | | - }, |
| 24 | + // use dots reporter, as travis terminal does not support escaping sequences |
| 25 | + // possible values: 'dots', 'progress' |
| 26 | + // CLI --reporters progress |
| 27 | + reporters: ['progress'], |
25 | 28 |
|
26 | | - // use dots reporter, as travis terminal does not support escaping sequences |
27 | | - // possible values: 'dots', 'progress' |
28 | | - // CLI --reporters progress |
29 | | - reporters: ['progress'], |
| 29 | + // web server port |
| 30 | + // CLI --port 9876 |
| 31 | + port: 9876, |
30 | 32 |
|
31 | | - // web server port |
32 | | - // CLI --port 9876 |
33 | | - port: 9876, |
| 33 | + // enable / disable colors in the output (reporters and logs) |
| 34 | + // CLI --colors --no-colors |
| 35 | + colors: true, |
34 | 36 |
|
35 | | - // enable / disable colors in the output (reporters and logs) |
36 | | - // CLI --colors --no-colors |
37 | | - colors: true, |
| 37 | + // level of logging |
| 38 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 39 | + // CLI --log-level debug |
| 40 | + logLevel: config.LOG_INFO, |
38 | 41 |
|
39 | | - // level of logging |
40 | | - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
41 | | - // CLI --log-level debug |
42 | | - logLevel: config.LOG_INFO, |
| 42 | + // enable / disable watching file and executing tests whenever any file changes |
| 43 | + // CLI --auto-watch --no-auto-watch |
| 44 | + autoWatch: false, |
43 | 45 |
|
44 | | - // enable / disable watching file and executing tests whenever any file changes |
45 | | - // CLI --auto-watch --no-auto-watch |
46 | | - autoWatch: false, |
| 46 | + // Start these browsers, currently available: |
| 47 | + // - Chrome |
| 48 | + // - ChromeCanary |
| 49 | + // - Firefox |
| 50 | + // - Opera |
| 51 | + // - Safari (only Mac) |
| 52 | + // - PhantomJS |
| 53 | + // - IE (only Windows) |
| 54 | + // CLI --browsers Chrome,Firefox,Safari |
| 55 | + browsers: ['PhantomJS'], |
47 | 56 |
|
48 | | - // Start these browsers, currently available: |
49 | | - // - Chrome |
50 | | - // - ChromeCanary |
51 | | - // - Firefox |
52 | | - // - Opera |
53 | | - // - Safari (only Mac) |
54 | | - // - PhantomJS |
55 | | - // - IE (only Windows) |
56 | | - // CLI --browsers Chrome,Firefox,Safari |
57 | | - browsers: ['PhantomJS'], |
| 57 | + // If browser does not capture in given timeout [ms], kill it |
| 58 | + // CLI --capture-timeout 5000 |
| 59 | + captureTimeout: 20000, |
58 | 60 |
|
59 | | - // If browser does not capture in given timeout [ms], kill it |
60 | | - // CLI --capture-timeout 5000 |
61 | | - captureTimeout: 20000, |
| 61 | + // Auto run tests on start (when browsers are captured) and exit |
| 62 | + // CLI --single-run --no-single-run |
| 63 | + singleRun: true, |
62 | 64 |
|
63 | | - // Auto run tests on start (when browsers are captured) and exit |
64 | | - // CLI --single-run --no-single-run |
65 | | - singleRun: true, |
| 65 | + // report which specs are slower than 500ms |
| 66 | + // CLI --report-slower-than 500 |
| 67 | + reportSlowerThan: 500, |
66 | 68 |
|
67 | | - // report which specs are slower than 500ms |
68 | | - // CLI --report-slower-than 500 |
69 | | - reportSlowerThan: 500, |
70 | | - |
71 | | - plugins: [ |
72 | | - 'karma-jasmine', |
73 | | - 'karma-chrome-launcher', |
74 | | - 'karma-firefox-launcher', |
75 | | - 'karma-phantomjs-launcher' |
76 | | - ] |
77 | | - }); |
| 69 | + plugins: [ |
| 70 | + 'karma-jasmine', |
| 71 | + 'karma-chrome-launcher', |
| 72 | + 'karma-firefox-launcher', |
| 73 | + 'karma-phantomjs-launcher' |
| 74 | + ] |
| 75 | + }); |
78 | 76 | }; |
0 commit comments