|
2 | 2 | // Generated on Thu Feb 18 2016 22:00:23 GMT+0100 (CET) |
3 | 3 |
|
4 | 4 | module.exports = function(config) { |
5 | | - config.set({ |
| 5 | + config.set({ |
6 | 6 |
|
7 | | - // base path that will be used to resolve all patterns (eg. files, exclude) |
8 | | - basePath: '', |
| 7 | + // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 | + basePath: '', |
9 | 9 |
|
10 | 10 |
|
11 | | - // frameworks to use |
12 | | - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
13 | | - frameworks: ['jasmine'], |
| 11 | + // frameworks to use |
| 12 | + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 13 | + frameworks: ['jasmine'], |
14 | 14 |
|
15 | 15 |
|
16 | | - // list of files / patterns to load in the browser |
17 | | - files: [ |
18 | | - 'bower_components/jquery/dist/jquery.min.js', |
19 | | - 'bower_components/jquery-ui/jquery-ui.min.js', |
20 | | - 'bower_components/lodash/dist/lodash.min.js', |
21 | | - 'src/gridstack.js', |
22 | | - 'spec/*-spec.js' |
23 | | - ], |
| 16 | + // list of files / patterns to load in the browser |
| 17 | + files: [ |
| 18 | + 'bower_components/jquery/dist/jquery.min.js', |
| 19 | + 'bower_components/jquery-ui/jquery-ui.min.js', |
| 20 | + 'bower_components/lodash/dist/lodash.min.js', |
| 21 | + 'src/gridstack.js', |
| 22 | + 'spec/*-spec.js' |
| 23 | + ], |
24 | 24 |
|
25 | 25 |
|
26 | | - // list of files to exclude |
27 | | - exclude: [ |
28 | | - ], |
| 26 | + // list of files to exclude |
| 27 | + exclude: [ |
| 28 | + ], |
29 | 29 |
|
30 | 30 |
|
31 | | - // preprocess matching files before serving them to the browser |
32 | | - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
33 | | - preprocessors: { |
34 | | - 'src/gridstack.js': ['coverage'] |
35 | | - }, |
| 31 | + // preprocess matching files before serving them to the browser |
| 32 | + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor |
| 33 | + preprocessors: { |
| 34 | + 'src/gridstack.js': ['coverage'] |
| 35 | + }, |
36 | 36 |
|
37 | 37 |
|
38 | | - // test results reporter to use |
39 | | - // possible values: 'dots', 'progress' |
40 | | - // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
41 | | - reporters: ['progress', 'coverage'], |
| 38 | + // test results reporter to use |
| 39 | + // possible values: 'dots', 'progress' |
| 40 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 41 | + reporters: ['progress', 'coverage', 'coveralls'], |
42 | 42 |
|
| 43 | + coverageReporter: { |
| 44 | + type: 'lcov', // lcov or lcovonly are required for generating lcov.info files |
| 45 | + dir: 'coverage/' |
| 46 | + }, |
43 | 47 |
|
44 | | - // web server port |
45 | | - port: 9876, |
| 48 | + // web server port |
| 49 | + port: 9876, |
46 | 50 |
|
47 | 51 |
|
48 | | - // enable / disable colors in the output (reporters and logs) |
49 | | - colors: true, |
| 52 | + // enable / disable colors in the output (reporters and logs) |
| 53 | + colors: true, |
50 | 54 |
|
51 | 55 |
|
52 | | - // level of logging |
53 | | - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
54 | | - logLevel: config.LOG_INFO, |
| 56 | + // level of logging |
| 57 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN |
| 58 | + // config.LOG_INFO || config.LOG_DEBUG |
| 59 | + logLevel: config.LOG_INFO, |
55 | 60 |
|
56 | 61 |
|
57 | | - // enable / disable watching file and executing tests whenever any file changes |
58 | | - autoWatch: true, |
| 62 | + // enable / disable watching file and executing tests whenever any file changes |
| 63 | + autoWatch: true, |
59 | 64 |
|
60 | 65 |
|
61 | | - // start these browsers |
62 | | - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
63 | | - browsers: ['PhantomJS'], |
| 66 | + // start these browsers |
| 67 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 68 | + browsers: ['PhantomJS'], |
64 | 69 |
|
65 | 70 |
|
66 | | - // Continuous Integration mode |
67 | | - // if true, Karma captures browsers, runs the tests and exits |
68 | | - singleRun: false, |
| 71 | + // Continuous Integration mode |
| 72 | + // if true, Karma captures browsers, runs the tests and exits |
| 73 | + singleRun: true, |
69 | 74 |
|
70 | | - // Concurrency level |
71 | | - // how many browser should be started simultaneous |
72 | | - concurrency: Infinity |
73 | | - }) |
| 75 | + // Concurrency level |
| 76 | + // how many browser should be started simultaneous |
| 77 | + concurrency: Infinity |
| 78 | + }); |
74 | 79 | } |
0 commit comments