|
1 | 1 | // Karma configuration
|
2 | 2 | // Generated on Fri Dec 16 2016 13:09:51 GMT+0000 (UTC)
|
3 | 3 |
|
4 |
| -module.exports = function(config) { |
5 |
| - config.set({ |
6 |
| - |
7 |
| - // base path that will be used to resolve all patterns (eg. files, exclude) |
8 |
| - basePath: '', |
9 |
| - |
10 |
| - |
11 |
| - // frameworks to use |
12 |
| - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
13 |
| - frameworks: ['mocha', 'chai', 'sinon'], |
14 |
| - |
15 |
| - |
16 |
| - // list of files / patterns to load in the browser |
17 |
| - files: [ |
18 |
| - 'dist/debug.js', |
19 |
| - 'test/*spec.js' |
20 |
| - ], |
21 |
| - |
22 |
| - |
23 |
| - // list of files to exclude |
24 |
| - exclude: [ |
25 |
| - 'src/node.js' |
26 |
| - ], |
27 |
| - |
28 |
| - |
29 |
| - // preprocess matching files before serving them to the browser |
30 |
| - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
31 |
| - preprocessors: { |
32 |
| - }, |
33 |
| - |
34 |
| - // test results reporter to use |
35 |
| - // possible values: 'dots', 'progress' |
36 |
| - // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
37 |
| - reporters: ['progress'], |
38 |
| - |
39 |
| - |
40 |
| - // web server port |
41 |
| - port: 9876, |
42 |
| - |
43 |
| - |
44 |
| - // enable / disable colors in the output (reporters and logs) |
45 |
| - colors: true, |
46 |
| - |
47 |
| - |
48 |
| - // level of logging |
49 |
| - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
50 |
| - logLevel: config.LOG_INFO, |
51 |
| - |
52 |
| - |
53 |
| - // enable / disable watching file and executing tests whenever any file changes |
54 |
| - autoWatch: true, |
55 |
| - |
56 |
| - |
57 |
| - // start these browsers |
58 |
| - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
59 |
| - browsers: ['PhantomJS'], |
60 |
| - |
61 |
| - |
62 |
| - // Continuous Integration mode |
63 |
| - // if true, Karma captures browsers, runs the tests and exits |
64 |
| - singleRun: false, |
65 |
| - |
66 |
| - // Concurrency level |
67 |
| - // how many browser should be started simultaneous |
68 |
| - concurrency: Infinity |
69 |
| - }) |
70 |
| -} |
| 4 | +module.exports = function (config) { |
| 5 | + config.set({ |
| 6 | + |
| 7 | + // Base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 | + basePath: '', |
| 9 | + |
| 10 | + // Frameworks to use |
| 11 | + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 12 | + frameworks: ['mocha', 'chai', 'sinon'], |
| 13 | + |
| 14 | + // List of files / patterns to load in the browser |
| 15 | + files: [ |
| 16 | + 'dist/debug.js', |
| 17 | + 'test/*spec.js' |
| 18 | + ], |
| 19 | + |
| 20 | + // List of files to exclude |
| 21 | + exclude: [ |
| 22 | + 'src/node.js' |
| 23 | + ], |
| 24 | + |
| 25 | + // Preprocess matching files before serving them to the browser |
| 26 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 27 | + preprocessors: { |
| 28 | + }, |
| 29 | + |
| 30 | + // Test results reporter to use |
| 31 | + // possible values: 'dots', 'progress' |
| 32 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 33 | + reporters: ['progress'], |
| 34 | + |
| 35 | + // Web server port |
| 36 | + port: 9876, |
| 37 | + |
| 38 | + // Enable / disable colors in the output (reporters and logs) |
| 39 | + colors: true, |
| 40 | + |
| 41 | + // Level of logging |
| 42 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 43 | + logLevel: config.LOG_INFO, |
| 44 | + |
| 45 | + // Enable / disable watching file and executing tests whenever any file changes |
| 46 | + autoWatch: true, |
| 47 | + |
| 48 | + // Start these browsers |
| 49 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 50 | + browsers: ['PhantomJS'], |
| 51 | + |
| 52 | + // Continuous Integration mode |
| 53 | + // if true, Karma captures browsers, runs the tests and exits |
| 54 | + singleRun: false, |
| 55 | + |
| 56 | + // Concurrency level |
| 57 | + // how many browser should be started simultaneous |
| 58 | + concurrency: Infinity |
| 59 | + }); |
| 60 | +}; |
0 commit comments