Movatterモバイル変換


[0]ホーム

URL:


TAP::Formatter::Base
(source,CPAN)
version 3.23
You are viewing the version of this documentation from Perl 5.14.4.View the latest version

CONTENTS

#NAME

TAP::Formatter::Base - Base class for harness output delegates

#VERSION

Version 3.23

#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 newTAP::Formatter::Console object. If aTAP::Harness is created with noformatter aTAP::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:

Any keys for which the value isundef will be ignored.

#prepare

Called by Test::Harness before any test output is generated.

This is an advisory and may not be called in the case where tests are being supplied to Test::Harness by an iterator.

#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 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.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp