summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Fontaine <afontaine@gitlab.com>2019-03-11 09:18:24 -0400
committerAndrew Fontaine <afontaine@gitlab.com>2019-03-11 09:58:32 -0400
commit618902d2902f9539a8ac2ada4a2d72faa41fc429 (patch)
treeec6b8d1112d16fbf5fcf09383d50d51121995ca9
parente8e25a0f405f866dced809cf626d18fcd7b33988 (diff)
downloadgitlab-ce-618902d2902f9539a8ac2ada4a2d72faa41fc429.tar.gz
Make the Default Reporter `mocha` For Karma
The `mocha` reporter provides a lot of detail about which tests that fail and why.
-rw-r--r--config/karma.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index e1d7c30b1c2..1012a713eb6 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -112,13 +112,13 @@ module.exports = function(config) {
preprocessors: {
'spec/javascripts/**/*.js': ['webpack', 'sourcemap'],
},
- reporters: ['progress'],
+ reporters: ['mocha'],
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
};
if (process.env.CI) {
- karmaConfig.reporters = ['mocha', 'junit'];
+ karmaConfig.reporters.push('junit');
karmaConfig.junitReporter = {
outputFile: 'junit_karma.xml',
useBrowserName: false,