TAP::Formatter::Color(3p) Perl Programmers Reference Guide #
TAP::Formatter::Color(3p) Perl Programmers Reference Guide
NNAAMMEE #
TAP::Formatter::Color - Run Perl test scripts with color
VVEERRSSIIOONN #
Version 3.44
DDEESSCCRRIIPPTTIIOONN #
Note that this harness is _e_x_p_e_r_i_m_e_n_t_a_l. 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 TAP::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 (and Win32::Console::ANSI if running
under Windows) tests will be run without color.
SSYYNNOOPPSSIISS #
use TAP::Formatter::Color;
my $harness = TAP::Formatter::Color->new( \%args );
$harness->runtests(@tests);
MMEETTHHOODDSS #
CCllaassss MMeetthhooddss _"_n_e_w_"
The constructor returns a new "TAP::Formatter::Color" object. If
Term::ANSIColor is not installed, returns undef.
_"_c_a_n___c_o_l_o_r_"
Test::Formatter::Color->can_color()
Returns a boolean indicating whether or not this module can actually
generate colored output. This will be false if it could not load the
modules needed for the current platform.
_"_s_e_t___c_o_l_o_r_"
Set the output color.
perl v5.36.3 2023-02-15 TAP::Formatter::Color(3p)