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: {
|
preprocessors: {
|
||||||
'spec/javascripts/**/*.js': ['webpack', 'sourcemap'],
|
'spec/javascripts/**/*.js': ['webpack', 'sourcemap'],
|
||||||
},
|
},
|
||||||
reporters: ['progress'],
|
reporters: ['mocha'],
|
||||||
webpack: webpackConfig,
|
webpack: webpackConfig,
|
||||||
webpackMiddleware: { stats: 'errors-only' },
|
webpackMiddleware: { stats: 'errors-only' },
|
||||||
};
|
};
|
||||||
|
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
karmaConfig.reporters = ['mocha', 'junit'];
|
karmaConfig.reporters.push('junit');
|
||||||
karmaConfig.junitReporter = {
|
karmaConfig.junitReporter = {
|
||||||
outputFile: 'junit_karma.xml',
|
outputFile: 'junit_karma.xml',
|
||||||
useBrowserName: false,
|
useBrowserName: false,
|
||||||
|
|
Loading…
Reference in New Issue