table of contents
other versions
- wheezy 5.14.2-21+deb7u3
- jessie 5.20.2-3+deb8u6
- testing 5.24.1-3
- unstable 5.24.1-3
- experimental 5.26.0-1
other sections
TAP::Formatter::Base(3perl) | Perl Programmers Reference Guide | TAP::Formatter::Base(3perl) |
NAME¶
TAP::Formatter::Base - Base class for harness output delegatesVERSION¶
Version 3.23DESCRIPTION¶
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:
- •
- "verbosity"
- •
- "verbose"
- •
- "timer"
- •
- "failures"
- •
- "comments"
- •
- "quiet"
- •
- "really_quiet"
- •
- "silent"
- •
- "errors"
errors => 1
- •
- "directives"
- •
- "stdout"
- •
- "color"
- •
- "jobs"
- •
- "show_count"
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 first argument is an aggregate to summarise. An optional second argument may be set to a true value to indicate that the summary is being output as a result of an interrupted test run.
2011-09-19 | perl v5.14.2 |