The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

TAPx::Harness::Color - Run Perl test scripts with color

VERSION

Version 0.50_01

DESCRIPTION

This test harness is the same as TAPx::Harness, 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.

If Term::ANSIColor cannot be found, tests will be run without color.

SYNOPSIS

 use TAPx::Harness::Color;
 my $harness = TAPx::Harness::Color->new( \%args );
 $harness->runtests(@tests);

METHODS

Class methods

new

 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.