Test::Proto::Formatter - handles output, formatting of RunnerEvents.
my $formatter = Test::Proto::Formatter->new(); $formatter->begin($testRunner); #? -> current_state? $formatter->format($_) foreach @runnerEvents; # no, this doesn't look right $formatter->end($testRunner);
The formatter is only used by the Test::Proto::TestRunner class. There is no reason to call it anywhere else. However, if you are writing a test script you might want to write your own formatter to give it to the TestRunner.
This minimal formatter does precisely nothing.
$formatter->event($runner, 'new');
There are two supported events, 'new' and 'done'. The formatter reads the test runner to find out more.
$formatter->format($runner);
NOT YET IMPLEMENTED.
For author, version, bug reports, support, etc, please see Test::Proto.
To install Test::Proto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Proto
CPAN shell
perl -MCPAN -e shell install Test::Proto
For more information on module installation, please visit the detailed CPAN module installation guide.