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
@@ -358,10 +359,10 @@ ($)
358
359
$skips ++;
359
360
print " [SKIPPED]\n " ;
360
361
} elsif (0 == $failed_skipped ) {
361
- print " [OK ] in $runtime seconds\n " ;
362
+ print " [" . colored( " OK " , " green " ) . " ] in $runtime seconds\n " ;
362
363
} else {
363
364
$failures ++;
364
- print " [FAILED]\n " ;
365
+ print " [" . colored( " FAILED" , " red " ) . " ]\n " ;
365
366
}
366
367
}
367
368
}
393
394
print " \n " ;
394
395
395
396
if ($failures == 0) {
396
- print " All tests were successful" ;
397
+ print colored( " All tests were successful" , " green " ) ;
397
398
} else {
398
- print " Tests failed\n " ;
399
+ print colored( " Tests failed" , " red " ) . " \n " ;
399
400
print " $failures of $count " . (1==$count ?" test" :" tests" ) . " failed" ;
400
401
}
401
402
print " , $skips " . (1==$skips ?" test" :" tests" ) . " skipped" if ($skips > 0);
You can’t perform that action at this time.
0 commit comments