Skip to content

Commit 0dc486a

Browse files
committed
Add sauce labs reporter for better SL statuses
1 parent a1287bc commit 0dc486a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module.exports = function karmaConfig (config) {
44
let browsers = [];
55
const customLaunchers = {};
66

7+
const reporters = [];
8+
79
function createCustomLauncher (browser, version, platform) {
810
return {
911
base: 'SauceLabs',
@@ -57,6 +59,7 @@ module.exports = function karmaConfig (config) {
5759
}
5860

5961
browsers = Object.keys(customLaunchers);
62+
reporters.push('saucelabs');
6063
} else {
6164
browsers = [(process.env.CONTINUOUS_INTEGRATION) ? 'Firefox' : 'Chrome'];
6265
}
@@ -81,7 +84,7 @@ module.exports = function karmaConfig (config) {
8184
stats: 'errors-only'
8285
},
8386

84-
reporters: ['mocha', 'coverage'],
87+
reporters: ['mocha', 'coverage'].concat(reporters),
8588

8689
mochaReporter: {
8790
showDiff: true

0 commit comments

Comments
 (0)