File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,9 @@ function runTest(test, callback) {
45
45
child . on ( 'exit' , function ( exitCode ) {
46
46
clearTimeout ( killTimeout ) ;
47
47
48
- console . log ( ' ' + ( ( exitCode ) ? '✘' . red : '✔' . green ) + ' ' +
49
- path . basename ( test ) + ( exitCode && ' (exit code: ' + exitCode + ')' ) ) ;
48
+ console . log ( ' ' + ( ( exitCode ) ? '✘' . red : '✔' . green ) + ' ' +
49
+ path . basename ( test ) +
50
+ ( exitCode ? ( ' (exit code: ' + exitCode + ')' ) : '' ) ) ;
50
51
results [ test ] = { exitCode : exitCode } ;
51
52
callback ( ) ;
52
53
//
@@ -68,13 +69,14 @@ if (!tests.length) {
68
69
//
69
70
}
70
71
72
+ console . log ( 'Running tests:' . bold ) ;
71
73
async . forEachSeries ( tests , runTest , function ( ) {
72
74
var failed = [ ] , ok = [ ] ;
73
75
for ( var test in results ) {
74
76
( results [ test ] . exitCode != 0 ? failed : ok ) . push ( test ) ;
75
77
}
76
78
77
- console . log ( '\nSummary:' ) ;
79
+ console . log ( '\nSummary:' . bold ) ;
78
80
console . log ( ( ' ' + ok . length + '\tpassed tests' ) . green ) ;
79
81
console . log ( ( ' ' + failed . length + '\tfailed tests' ) . red ) ;
80
82
} ) ;
You can’t perform that action at this time.
0 commit comments