summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-07 13:27:36 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-07 13:27:36 -0600
commitfbdf54bdcf192fb12a17c06ac74b79c815911e1d (patch)
tree8f24adcbf7a150121be9297ad85acdca5331d510 /config/karma.config.js
parentbc13687c7e374116e4830d004b82e9960d3a55cc (diff)
downloadgitlab-ce-fbdf54bdcf192fb12a17c06ac74b79c815911e1d.tar.gz
fix karma coverage report
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index 44229e2ee88..59b95427dbc 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -13,9 +13,17 @@ module.exports = function(config) {
{ pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw)', included: false },
],
preprocessors: {
- 'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap'],
+ 'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap', 'coverage'],
},
+ reporters: ['progress', 'coverage'],
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
+ coverageReporter: {
+ dir: './coverage-javascript',
+ reporters: [
+ { type: 'html', subdir: 'default' },
+ { type: 'text-summary' }
+ ],
+ }
});
};