File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ module.exports = function karmaConfig (config) {
4
4
let browsers = [ ] ;
5
5
const customLaunchers = { } ;
6
6
7
+ const reporters = [ ] ;
8
+
7
9
function createCustomLauncher ( browser , version , platform ) {
8
10
return {
9
11
base : 'SauceLabs' ,
@@ -57,6 +59,7 @@ module.exports = function karmaConfig (config) {
57
59
}
58
60
59
61
browsers = Object . keys ( customLaunchers ) ;
62
+ reporters . push ( 'saucelabs' ) ;
60
63
} else {
61
64
browsers = [ ( process . env . CONTINUOUS_INTEGRATION ) ? 'Firefox' : 'Chrome' ] ;
62
65
}
@@ -81,7 +84,7 @@ module.exports = function karmaConfig (config) {
81
84
stats : 'errors-only'
82
85
} ,
83
86
84
- reporters : [ 'mocha' , 'coverage' ] ,
87
+ reporters : [ 'mocha' , 'coverage' ] . concat ( reporters ) ,
85
88
86
89
mochaReporter : {
87
90
showDiff : true
You can’t perform that action at this time.
0 commit comments