We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 374cf26 commit 399033fCopy full SHA for 399033f
karma.conf.js
@@ -11,6 +11,11 @@ if (process.argv.indexOf('--browsers') < 0) {
11
12
const webpackCfg = require('./webpack.config')
13
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
+ }
19
config.set({
20
basePath: '',
21
browsers: ['ChromeHeadless'],
@@ -24,7 +29,7 @@ module.exports = function(config) {
24
29
colors: true,
25
30
singleRun: true,
26
31
logLevel: config.LOG_INFO,
27
- reporters: ['mocha', 'coverage'],
32
+ reporters: reporters,
28
33
preprocessors: {
34
'test/loadtests.js': ['webpack', 'sourcemap']
35
},
0 commit comments