This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ var noLineLog_ = function(stuff) {
21
21
process . stdout . write ( launcherPrefix + stuff ) ;
22
22
}
23
23
24
-
25
24
var reportHeader_ = function ( childFork ) {
26
25
var capability = childFork . capability ;
27
26
var eol = require ( 'os' ) . EOL ;
@@ -70,7 +69,19 @@ var init = function(argv) {
70
69
if ( remaining ) {
71
70
noLineLog_ ( remaining + ' instance(s) of WebDriver still running' ) ;
72
71
}
73
- }
72
+ } ;
73
+
74
+ var logSummary = function ( ) {
75
+ childForks . forEach ( function ( childFork ) {
76
+ var shortChildName = childFork . capability . browserName +
77
+ ( childFork . runNumber ? ' #' + childFork . runNumber : '' ) ;
78
+ if ( childFork . failedCount ) {
79
+ log_ ( shortChildName + ' failed ' + childFork . failedCount + ' test(s)' ) ;
80
+ } else {
81
+ log_ ( shortChildName + ' passed' ) ;
82
+ }
83
+ } ) ;
84
+ } ;
74
85
75
86
if ( config . multiCapabilities . length ) {
76
87
if ( config . debug ) {
@@ -160,6 +171,9 @@ var init = function(argv) {
160
171
case 'testFail' :
161
172
process . stdout . write ( 'F' ) ;
162
173
break ;
174
+ case 'testsDone' :
175
+ childFork . failedCount = m . failedCount ;
176
+ break ;
163
177
}
164
178
} ) ;
165
179
@@ -189,6 +203,7 @@ var init = function(argv) {
189
203
}
190
204
191
205
process . on ( 'exit' , function ( code ) {
206
+ logSummary ( ) ;
192
207
process . exit ( launcherExitCode ) ;
193
208
} ) ;
194
209
} ;
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ process.on('message', function(m) {
41
41
event : 'testFail'
42
42
} ) ;
43
43
} ) ;
44
- runner . on ( 'testsDone' , function ( results ) {
44
+ runner . on ( 'testsDone' , function ( failedCount ) {
45
45
process . send ( {
46
46
event : 'testsDone' ,
47
- results : results
47
+ failedCount : failedCount
48
48
} ) ;
49
49
} ) ;
50
50
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ Runner.prototype.run = function() {
413
413
414
414
// 3) Teardown
415
415
} ) . then ( function ( result ) {
416
- self . emit ( 'testsDone' , result ) ;
416
+ self . emit ( 'testsDone' , result . failedCount ) ;
417
417
testResult = result ;
418
418
if ( self . driverprovider_ . updateJob ) {
419
419
return self . driverprovider_ . updateJob ( {
You can’t perform that action at this time.
0 commit comments