Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 4e1cfe5

Browse files
committed
feature(launcher): aggregate failures at the end
1 parent 8582b19 commit 4e1cfe5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/launcher.js

+5
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,22 @@ var reporter = {
191191
},
192192

193193
reportSummary: function() {
194+
var totalFailures = 0;
194195
this.taskReporters_.forEach(function(taskReporter) {
195196
var capability = taskReporter.task.capability;
196197
var shortName = (capability.browserName) ? capability.browserName : '';
197198
shortName += (capability.version) ? capability.version : '';
198199
shortName += (' #' + taskReporter.task.taskId);
199200
if (taskReporter.failedCount) {
200201
log_(shortName + ' failed ' + taskReporter.failedCount + ' test(s)');
202+
totalFailures += taskReporter.failedCount;
201203
} else {
202204
log_(shortName + ' passed');
203205
}
204206
});
207+
if (this.taskReporters_.length > 1 && totalFailures) {
208+
log_('overall: ' + totalFailures + ' failure(s)');
209+
}
205210
}
206211
};
207212

0 commit comments

Comments
 (0)