Test::Builder2::Formatter::TAP::v13 - Formatter as TAP version 13
use Test::Builder2::Formatter::TAP::v13; my $formatter = Test:::Builder2::Formatter::TAP::v13->new; $formatter->accept_event($event); $formatter->accept_result($result);
Formatter Test::Builder2::Result's as TAP version 13.
As Test::Builder2::Object with the following changes and additions.
These methods are just shorthand for:
$output->write(out => @args); $output->write(err => @args);
my $counter = $formatter->counter; $formatter->counter($counter);
Gets/sets the Test::Builder2::Counter for this formatter keeping track of the test number.
my $use_numbers = $formatter->use_numbers; $formatter->use_numbers($use_numbers);
Get/sets if the TAP output should include the test number. Defaults to true. NOTE: the counter will still incrememnt this only toggles if the number should be used in the display.
Takes a Test::Builder2::Result as an argument and displays the result details.
Test::Builder2::Result
my $comment = $self->comment(@message);
Will turn the given @message into a TAP comment.
# returns "# Basset houndsgot long ears" $self->comment("Basset hounds", "got long ears");
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.