| TAP::Formatter::Console - Harness output delegate for default console output |
TAP::Formatter::Console - Harness output delegate for default console output
Version 3.10
This provides console orientated output formatting for TAP::Harness.
use TAP::Formatter::Console; my $harness = TAP::Formatter::Console->new( \%args );
new
my %args = (
verbose => 1,
)
my $harness = TAP::Formatter::Console->new( \%args );
The constructor returns a new TAP::Formatter::Console object. If
a the TAP::Harness manpage is created with no formatter a
TAP::Formatter::Console is automatically created. If any of the
following options were given to TAP::Harness->new they well be passed to
this constructor which accepts an optional hashref whose allowed keys are:
verbosityverbosetimerfailuresverbose is selected).
quietreally_quietsilenterrorserrors => 1
directivesverbose or failures.
stdoutcolorcolor is not
defined it will default to color output if color support is available on
the current platform and output is not being redirected.
jobsAny keys for which the value is undef will be ignored.
prepareCalled by Test::Harness before any test output is generated.
open_testCalled to create a new test session. A test session looks like this:
my $session = $formatter->open_test( $test, $parser );
while ( defined( my $result = $parser->next ) ) {
$session->result($result);
exit 1 if $result->is_bailout;
}
$session->close_test;
summary$harness->summary( $aggregate );
summary prints the summary report after all tests are run. The argument is
an aggregate.
| TAP::Formatter::Console - Harness output delegate for default console output |