|
1 | 1 | // Karma configuration |
2 | | -// Generated on Thu May 16 2013 16:32:29 GMT+0200 (CEST) |
| 2 | +// Generated on Sat Dec 28 2013 18:07:39 GMT+0100 (CET) |
3 | 3 |
|
| 4 | +module.exports = function(config) { |
| 5 | + config.set({ |
4 | 6 |
|
5 | | -// base path, that will be used to resolve files and exclude |
6 | | -basePath = '..'; |
| 7 | + // base path, that will be used to resolve files and exclude |
| 8 | + basePath: '..', |
7 | 9 |
|
8 | 10 |
|
9 | | -// list of files / patterns to load in the browser |
10 | | -files = [ |
11 | | - JASMINE, |
12 | | - JASMINE_ADAPTER, |
13 | | - 'bower_components/angular/angular.js', |
14 | | - 'bower_components/angular-mocks/angular-mocks.js', |
15 | | - 'bower_components/angular-ui-utils/modules/event/event.js', |
16 | | - 'ui-map.js', |
17 | | - 'test/googlemaps.js', |
18 | | - 'test/*Spec.js' |
19 | | -]; |
| 11 | + // frameworks to use |
| 12 | + frameworks: ['jasmine'], |
20 | 13 |
|
21 | 14 |
|
22 | | -// list of files to exclude |
23 | | -exclude = [ |
24 | | - |
25 | | -]; |
| 15 | + // list of files / patterns to load in the browser |
| 16 | + files: [ |
| 17 | + 'bower_components/angular/angular.js', |
| 18 | + 'bower_components/angular-mocks/angular-mocks.js', |
| 19 | + 'bower_components/angular-ui-utils/modules/event/event.js', |
| 20 | + 'ui-map.js', |
| 21 | + 'test/googlemaps.js', |
| 22 | + 'test/*Spec.js' |
| 23 | + ], |
26 | 24 |
|
27 | 25 |
|
28 | | -// test results reporter to use |
29 | | -// possible values: 'dots', 'progress', 'junit' |
30 | | -reporters = ['dots']; |
| 26 | + // list of files to exclude |
| 27 | + exclude: [ |
31 | 28 |
|
| 29 | + ], |
32 | 30 |
|
33 | | -// enable / disable colors in the output (reporters and logs) |
34 | | -colors = true; |
35 | 31 |
|
| 32 | + // test results reporter to use |
| 33 | + // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' |
| 34 | + reporters: ['progress'], |
36 | 35 |
|
37 | | -// level of logging |
38 | | -// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG |
39 | | -logLevel = LOG_INFO; |
40 | 36 |
|
| 37 | + // web server port |
| 38 | + port: 9876, |
41 | 39 |
|
42 | | -// enable / disable watching file and executing tests whenever any file changes |
43 | | -autoWatch = false; |
44 | 40 |
|
| 41 | + // enable / disable colors in the output (reporters and logs) |
| 42 | + colors: true, |
45 | 43 |
|
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 | | -browsers = ['Chrome', 'Firefox', 'PhantomJS']; |
55 | 44 |
|
| 45 | + // level of logging |
| 46 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 47 | + logLevel: config.LOG_INFO, |
56 | 48 |
|
57 | | -// Continuous Integration mode |
58 | | -// if true, it capture browsers, run tests and exit |
59 | | -singleRun = false; |
| 49 | + |
| 50 | + // enable / disable watching file and executing tests whenever any file changes |
| 51 | + autoWatch: true, |
| 52 | + |
| 53 | + |
| 54 | + // Start these browsers, currently available: |
| 55 | + // - Chrome |
| 56 | + // - ChromeCanary |
| 57 | + // - Firefox |
| 58 | + // - Opera (has to be installed with `npm install karma-opera-launcher`) |
| 59 | + // - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`) |
| 60 | + // - PhantomJS |
| 61 | + // - IE (only Windows; has to be installed with `npm install karma-ie-launcher`) |
| 62 | + browsers: ['Chrome', 'Firefox', 'PhantomJS'], |
| 63 | + |
| 64 | + |
| 65 | + // If browser does not capture in given timeout [ms], kill it |
| 66 | + captureTimeout: 60000, |
| 67 | + |
| 68 | + |
| 69 | + // Continuous Integration mode |
| 70 | + // if true, it capture browsers, run tests and exit |
| 71 | + singleRun: false |
| 72 | + }); |
| 73 | +}; |
0 commit comments