TB2::Formatter::Multi - Use multiple formatters at once
use TB2::Formatter::Multi; my $multi = TB2::Formatter::Multi->new; $multi->add_formatters($this_formatter, $that_formatter); # Equivalent to # $this_formatter->handle_result($result, $ec); # $that_formatter->handle_result($result, $ec); $multi->handle_result($result, $ec);
This is a formatter which allows you to use multiple formatters at the same time. It does no work on its own but passes it on to its list of formatters. You might want this to store the results as TAP while also writing them out as HTML.
A Multi instance does not have a streamer of its own.
This has all the normal methods of a Formatter plus...
Gets/sets the list of Formatter objects to multiplex to.
$multi->add_formatters(@formatters);
A convenience method to add @formatters to $multi->formatters.
$multi->formatters
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.