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
@@ -358,10 +359,10 @@ ($)
358359 $skips ++;
359360 print " [SKIPPED]\n " ;
360361 } elsif (0 == $failed_skipped ) {
361- print " [OK ] in $runtime seconds\n " ;
362+ print " [" . colored( " OK " , " green " ) . " ] in $runtime seconds\n " ;
362363 } else {
363364 $failures ++;
364- print " [FAILED]\n " ;
365+ print " [" . colored( " FAILED" , " red " ) . " ]\n " ;
365366 }
366367 }
367368}
393394print " \n " ;
394395
395396if ($failures == 0) {
396- print " All tests were successful" ;
397+ print colored( " All tests were successful" , " green " ) ;
397398} else {
398- print " Tests failed\n " ;
399+ print colored( " Tests failed" , " red " ) . " \n " ;
399400 print " $failures of $count " . (1==$count ?" test" :" tests" ) . " failed" ;
400401}
401402print " , $skips " . (1==$skips ?" test" :" tests" ) . " skipped" if ($skips > 0);
You can’t perform that action at this time.
0 commit comments