Apache-Test
view release on metacpan or search on metacpan
lib/Apache/TestSmoke.pm view on Meta::CPAN
=over
=item 1
Runs the tests randomly until the first failure is detected. Or
non-randomly if the option I<-order> is set to I<repeat> or I<rotate>.
=item 2
Then it tries to reduce that sequence of tests to a minimum, and this
sequence still causes to the same failure.
=item 3
(XXX: todo): then it reruns the minimal sequence in the verbose mode
and saves the output.
=item 4
It reports all the successful reductions as it goes to STDOUT and
report file of the format: smoke-report-<date>.txt.
In addition the systems build parameters are logged into the report
file, so the detected problems could be reproduced.
=item 5
Goto 1 and run again using a new random seed, which potentially should
detect different failures.
=back
=head1 Reduction Algorithm
Currently for each reduction path, the following reduction algorithms
get applied:
=over
=item 1
Binary search: first try the upper half then the lower.
=item 2
Random window: randomize the left item, then the right item and return
the items between these two points.
=back
=head1 t/SMOKE.PL
I<t/SMOKE.PL> is driving this module, if you don't have it, create it:
#!perl
use strict;
use warnings FATAL => 'all';
use FindBin;
use lib "$FindBin::Bin/../Apache-Test/lib";
use lib "$FindBin::Bin/../lib";
use Apache::TestSmoke ();
Apache::TestSmoke->new(@ARGV)->run;
usually I<Makefile.PL> converts it into I<t/SMOKE> while adjusting the
perl path, but you create I<t/SMOKE> in first place as well.
=head1 AUTHOR
Stas Bekman
=cut
( run in 2.325 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )