Test::Stream::Formatter::TAP - Standard TAP formatter
This distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow.
See Test::Stream::Manual::ToTest2 for a conversion guide.
This is what takes events and turns them into TAP.
use Test::Stream::Formatter::TAP; my $tap = Test::Stream::Formatter::TAP->new(); # Switch to utf8 $tap->encoding('utf8'); $tap->write($event, $number); # Output an event
These are constants to identify filehandles. These constants are used by events to direct text to the correct filehandle.
Use to turn numbers on and off.
When true, the plan will not be rendered.
When true, diagnostics will not be rendered.
Can be used to get/set the filehandles. Indexes are identified by the OUT_STD, OUT_ERR, OUT_TODO constants.
OUT_STD, OUT_ERR, OUT_TODO
Get or set the encoding. By default no encoding is set, the original settings of STDOUT and STDERR are used.
This directly modifies the stored filehandles, it does not create new ones.
Write an event to the console.
The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.
Copyright 2015 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
To install Test::Stream, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Stream
CPAN shell
perl -MCPAN -e shell install Test::Stream
For more information on module installation, please visit the detailed CPAN module installation guide.