TAP::Formatter::Color - Run Perl test scripts with color
use TAP::Formatter::Color; my $harness = TAP::Formatter::Color->new( \%args ); $harness->runtests(@tests);
Perl Programmers Reference Guide TAP::Formatter::Color(3) NAME TAP::Formatter::Color - Run Perl test scripts with color VERSION Version 3.42 DESCRIPTION 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 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 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. ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+-----------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+-----------------------+ |Availability | runtime/perl-532 | +---------------+-----------------------+ |Stability | Pass-through volatile | +---------------+-----------------------+ NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz. Further information about this software can be found on the open source community website at https://www.perl.org/. perl v5.32.0 2020-06-14 TAP::Formatter::Color(3)