Apache::TestRun 1.28 review
DownloadApache::TestRun is a Perl module to run the test suite. SYNOPSIS The Apache::TestRun package controls the configuration and r
|
|
Apache::TestRun is a Perl module to run the test suite.
SYNOPSIS
The Apache::TestRun package controls the configuration and running of the test suite.
METHODS
Several methods are sub-classable, if the default behavior should be changed.
bug_report
The bug_report() method is executed when t/TEST was executed with the -bugreport option, and make test (or t/TEST) fail. Normally this is callback which you can use to tell the user how to deal with the problem, e.g. suggesting to read some document or email some details to someone who can take care of it. By default nothing is executed.
The -bugreport option is needed so this feature won't become annoying to developers themselves. It's automatically added to the run_tests target in Makefile. So if you repeateadly have to test your code, just don't use make test but run t/TEST directly. Here is an example of a custom t/TEST
My::TestRun->new->run(@ARGV);
package My::TestRun;
use base 'Apache::TestRun';
sub bug_report {
my $self = shift;
print
Apache::TestRun 1.28 keywords