File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 44use strict;
55use warnings;
66use File::Basename;
7+ use Term::ANSIColor;
78
89use Cwd;
910
@@ -373,10 +374,10 @@ ($)
373374 $skips ++;
374375 print " [SKIPPED]\n " ;
375376 } elsif (0 == $failed_skipped ) {
376- print " [OK ] in $runtime seconds\n " ;
377+ print " [" . colored( " OK " , " green " ) . " ] in $runtime seconds\n " ;
377378 } else {
378379 $failures ++;
379- print " [FAILED]\n " ;
380+ print " [" . colored( " FAILED" , " red " ) . " ]\n " ;
380381 }
381382 }
382383}
408409print " \n " ;
409410
410411if ($failures == 0) {
411- print " All tests were successful" ;
412+ print colored( " All tests were successful" , " green " ) ;
412413} else {
413- print " Tests failed\n " ;
414+ print colored( " Tests failed" , " red " ) . " \n " ;
414415 print " $failures of $count " . (1==$count ?" test" :" tests" ) . " failed" ;
415416}
416417print " , $skips " . (1==$skips ?" test" :" tests" ) . " skipped" if ($skips > 0);
You can’t perform that action at this time.
0 commit comments