Skip to content

Commit 399033f

Browse files
committed
#9 don't run coverage in watch (CI) mode
1 parent 374cf26 commit 399033f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

karma.conf.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ if (process.argv.indexOf('--browsers') < 0) {
1111

1212
const webpackCfg = require('./webpack.config')
1313
module.exports = function(config) {
14+
let reporters = ['mocha', 'coverage']
15+
// don't run coverage in watch (CI) mode
16+
if (config.autoWatch && !config.singleRun) {
17+
reporters = ['mocha']
18+
}
1419
config.set({
1520
basePath: '',
1621
browsers: ['ChromeHeadless'],
@@ -24,7 +29,7 @@ module.exports = function(config) {
2429
colors: true,
2530
singleRun: true,
2631
logLevel: config.LOG_INFO,
27-
reporters: ['mocha', 'coverage'],
32+
reporters: reporters,
2833
preprocessors: {
2934
'test/loadtests.js': ['webpack', 'sourcemap']
3035
},

0 commit comments

Comments
 (0)