Skip to content

Commit

Permalink
#9 don't run coverage in watch (CI) mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Oct 8, 2017
1 parent 374cf26 commit 399033f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ if (process.argv.indexOf('--browsers') < 0) {

const webpackCfg = require('./webpack.config')
module.exports = function(config) {
let reporters = ['mocha', 'coverage']
// don't run coverage in watch (CI) mode
if (config.autoWatch && !config.singleRun) {
reporters = ['mocha']
}
config.set({
basePath: '',
browsers: ['ChromeHeadless'],
Expand All @@ -24,7 +29,7 @@ module.exports = function(config) {
colors: true,
singleRun: true,
logLevel: config.LOG_INFO,
reporters: ['mocha', 'coverage'],
reporters: reporters,
preprocessors: {
'test/loadtests.js': ['webpack', 'sourcemap']
},
Expand Down

0 comments on commit 399033f

Please sign in to comment.