The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::Builder2::Formatter::TAP::v13 - Formatter as TAP version 13

SYNOPSIS

  use Test::Builder2::Formatter::TAP::v13;

  my $formatter = Test:::Builder2::Formatter::TAP::v13->new;
  $formatter->begin();
  $formatter->result($result);
  $formatter->end($plan);

DESCRIPTION

Formatter Test::Builder2::Result's as TAP version 13.

METHODS

As Test::Builder2::Object with the following changes and additions.

out

err

These methods are just shorthand for:

  $output->write(out => @args);
  $output->write(err => @args);

begin

The %plan can be one and only one of...

  tests => $number_of_tests

  no_plan => 1

  skip_all => $reason

result

Takes a Test::Builder2::Result as an argument and displays the result details.

end

Similar to begin(), it takes either no or one and only one pair of arguments.

  tests => $number_of_tests