File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
use strict;
5
5
use warnings;
6
6
use File::Basename;
7
+ use Term::ANSIColor;
7
8
8
9
use Cwd;
9
10
@@ -373,10 +374,10 @@ ($)
373
374
$skips ++;
374
375
print " [SKIPPED]\n " ;
375
376
} elsif (0 == $failed_skipped ) {
376
- print " [OK ] in $runtime seconds\n " ;
377
+ print " [" . colored( " OK " , " green " ) . " ] in $runtime seconds\n " ;
377
378
} else {
378
379
$failures ++;
379
- print " [FAILED]\n " ;
380
+ print " [" . colored( " FAILED" , " red " ) . " ]\n " ;
380
381
}
381
382
}
382
383
}
408
409
print " \n " ;
409
410
410
411
if ($failures == 0) {
411
- print " All tests were successful" ;
412
+ print colored( " All tests were successful" , " green " ) ;
412
413
} else {
413
- print " Tests failed\n " ;
414
+ print colored( " Tests failed" , " red " ) . " \n " ;
414
415
print " $failures of $count " . (1==$count ?" test" :" tests" ) . " failed" ;
415
416
}
416
417
print " , $skips " . (1==$skips ?" test" :" tests" ) . " skipped" if ($skips > 0);
You can’t perform that action at this time.
0 commit comments