TAP::Formatter::Color - Run Perl test scripts with color
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 (or Win32::Console if running under Windows) tests will be run without color.
use TAP::Formatter::Color; my $harness = TAP::Formatter::Color->new( \%args ); $harness->runtests(@tests);
The constructor returns a new "TAP::Formatter::Color" object. If Term::ANSIColor is not installed, returns undef.
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 the output color.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |