NAME
TAP::Formatter::Console - Harness output delegate for default console output
VERSION
Version 2.99_08
DESCRIPTION
This provides console orientated output formatting for TAP::Harness.
SYNOPSIS
use TAP::Formatter::Console;
my $harness = TAP::Formatter::Console->new( \%args );
METHODS
Class Methods
new
my %args = (
verbose => 1,
)
my $harness = TAP::Formatter::Console->new( \%args );
The constructor returns a new TAP::Formatter::Console object. If a TAP::Harness 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:
verbositySet the verbosity level.
verbosePrinting individual test results to STDOUT.
timerAppend run time for each test to output. Uses Time::HiRes if available.
failuresOnly show test failures (this is a no-op if
verboseis selected).quietSuppressing some test output (mostly failures while tests are running).
really_quietSuppressing everything but the tests summary.
silentSuppressing all output.
errorsIf parse errors are found in the TAP output, a note of this will be made in the summary report. To see all of the parse errors, set this argument to true:
errors => 1directivesIf set to a true value, only test results with directives will be displayed. This overrides other settings such as
verboseorfailures.stdoutA filehandle for catching standard output.
colorIf defined specifies whether color output is desired. If
coloris not defined it will default to color output if color support is available on the current platform and output is not being redirected.jobsThe number of concurrent jobs this formatter will handle.
Any keys for which the value is undef will be ignored.
prepare
Called by Test::Harness before any test output is generated.
open_test
Called 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.