1TAP::Formatter::Color(3U)ser Contributed Perl DocumentatiToAnP::Formatter::Color(3)
2
3
4
6 TAP::Formatter::Color - Run Perl test scripts with color
7
9 Version 3.44
10
12 Note that this harness is experimental. You may not like the colors
13 I've chosen and I haven't yet provided an easy way to override them.
14
15 This test harness is the same as TAP::Harness, but test results are
16 output in color. Passing tests are printed in green. Failing tests
17 are in red. Skipped tests are blue on a white background and TODO
18 tests are printed in white.
19
20 If Term::ANSIColor cannot be found (and Win32::Console::ANSI if running
21 under Windows) tests will be run without color.
22
24 use TAP::Formatter::Color;
25 my $harness = TAP::Formatter::Color->new( \%args );
26 $harness->runtests(@tests);
27
29 Class Methods
30 "new"
31
32 The constructor returns a new "TAP::Formatter::Color" object. If
33 Term::ANSIColor is not installed, returns undef.
34
35 "can_color"
36
37 Test::Formatter::Color->can_color()
38
39 Returns a boolean indicating whether or not this module can actually
40 generate colored output. This will be false if it could not load the
41 modules needed for the current platform.
42
43 "set_color"
44
45 Set the output color.
46
47
48
49perl v5.36.0 2022-07-22 TAP::Formatter::Color(3)