Make the Default Reporter `mocha` For Karma
The `mocha` reporter provides a lot of detail about which tests that fail and why.
This commit is contained in:
parent
e8e25a0f40
commit
618902d290
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue