TAPx::Harness::Color - Run Perl test scripts with color
Note that this harness is experimental. You may not like the colors I've chosen and I haven't yet provided an easy way to override them.
This test harness is the same as
but test results are output in color.
Passing tests are printed in green.
Failing tests are in red.
Skipped tests are blue on a white background and TODO tests are printed in white.
Term::ANSIColor cannot be found or if running under Windows,
tests will be run without color.
use TAPx::Harness::Color; my $harness = TAPx::Harness::Color->new( \%args ); $harness->runtests(@tests);
my %args = ( verbose => 1, lib => [ 'lib', 'blib/lib' ], shuffle => 0, ) my $harness = TAPx::Harness::Color->new( \%args );
The constructor returns a new
TAPx::Harness::Color object. If
Term::ANSIColor is not installed, returns a
TAPx::Harness object. See
TAPx::Harness for more details.
failure_output to output failure information in red.