TAP::FORMATTER::COLOR(3pm)
π TAP::Formatter::Color(3pm) π
okay bestie, welcome to the Perl Programmers Reference Guide page for TAP::Formatter::Color! π
This is the whole vibe, no cap.
π NAME π
TAP::Formatter::Color β run Perl test scripts with color, periodt. π
β¨ VERSION β¨
Version 3.50 β¨
π DESCRIPTION π
Note that this harness is experimental, bestie. 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. π
π SYNOPSIS π
k here's the group-chat recipe:
use TAP::Formatter::Color;
my $harness = TAP::Formatter::Color->new( \%args );
$harness->runtests(@tests);
π₯ METHODS π₯
π§ Class Methods π§
π new π
The constructor returns a new TAP::Formatter::Color object. If Term::ANSIColor is not installed, returns undef. π«Ά
π¦ can_color π¦
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. π
π¨ set_color π¨
Set the output color. That's the whole method, bestie. π
π«Ά okay that's the page! Source/version isperl v5.42.3and the date is2026-11-03βTAP::Formatter::Color(3pm)signing off! πβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms