Added failure count to test case reporter.

This commit is contained in:
Richard Moore 2018-09-27 16:50:59 -04:00
parent 1ca203ca38
commit 5f6bc405dd
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

@ -47,7 +47,11 @@ function Reporter(runner) {
runner.on('suite end', function() {
var suite = suites.pop();
log(' Total Tests: ' + suite._countPass + '/' + suite._countTotal + ' passed ' + getDelta(suite._t0));
var failure = '';
if (suite._countTotal > suite._countPass) {
failure = ' (' + (suite._countTotal - suite._countPass) + ' failed)';
}
log(' Total Tests: ' + suite._countPass + '/' + suite._countTotal + ' passed ' + getDelta(suite._t0) + failure);
log();
if (suites.length > 0) {
var currentSuite = suites[suites.length - 1];