OLD | NEW |
---|---|
1 // Karma configuration | 1 // Karma configuration |
2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) | 2 // Generated on Mon Apr 20 2015 06:33:20 GMT-0700 (PDT) |
3 | 3 |
4 module.exports = function(config) { | 4 module.exports = function(config) { |
5 var harmony_flags = '--js-flags="' + [ | 5 var harmony_flags = '--js-flags="' + [ |
6 '--harmony', | 6 '--harmony', |
7 ].join(' ') + '"'; | 7 ].join(' ') + '"'; |
8 | 8 |
9 var configuration = { | 9 var configuration = { |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 reporters: ['progress'], | 46 reporters: ['progress'], |
47 | 47 |
48 // web server port | 48 // web server port |
49 port: 9876, | 49 port: 9876, |
50 | 50 |
51 // enable / disable colors in the output (reporters and logs) | 51 // enable / disable colors in the output (reporters and logs) |
52 colors: true, | 52 colors: true, |
53 | 53 |
54 // level of logging | 54 // level of logging |
55 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR N || config.LOG_INFO || config.LOG_DEBUG | 55 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WAR N || config.LOG_INFO || config.LOG_DEBUG |
56 logLevel: config.LOG_DEBUG, | 56 logLevel: config.LOG_INFO, |
vsm
2015/07/24 15:01:38
This is unrelated - just suppressing some of the d
| |
57 | 57 |
58 // enable / disable watching file and executing tests whenever any file chan ges | 58 // enable / disable watching file and executing tests whenever any file chan ges |
59 autoWatch: true, | 59 autoWatch: true, |
60 | 60 |
61 // start these browsers | 61 // start these browsers |
62 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc her | 62 // available browser launchers: https://npmjs.org/browse/keyword/karma-launc her |
63 | 63 |
64 // FIXME(vsm): Once harmony is on by default, we can simply add the followin g: | 64 // FIXME(vsm): Once harmony is on by default, we can simply add the followin g: |
65 // browsers: ['Chrome'], | 65 // browsers: ['Chrome'], |
66 // and remove the custom launchers. | 66 // and remove the custom launchers. |
(...skipping 16 matching lines...) Expand all Loading... | |
83 browsers: ['chrome_canary_harmony'], | 83 browsers: ['chrome_canary_harmony'], |
84 | 84 |
85 // Continuous Integration mode | 85 // Continuous Integration mode |
86 // if true, Karma captures browsers, runs the tests and exits | 86 // if true, Karma captures browsers, runs the tests and exits |
87 singleRun: false, | 87 singleRun: false, |
88 }; | 88 }; |
89 | 89 |
90 if (process.env.TRAVIS) { | 90 if (process.env.TRAVIS) { |
91 configuration.browsers = ['chrome_canary_travis']; | 91 configuration.browsers = ['chrome_canary_travis']; |
92 configuration.autoWatch = false; | 92 configuration.autoWatch = false; |
93 configuration.logLevel = config.LOG_DEBUG; | |
93 } | 94 } |
94 | 95 |
95 config.set(configuration); | 96 config.set(configuration); |
96 }; | 97 }; |
OLD | NEW |