use strict;
$VERSION = "1.04";
my @ext = ();
my $shuffle = 0;
my $dry = 0;
my $blib = 0;
my $lib = 0;
my $recurse = 0;
my @includes = ();
my @switches = ();
# Allow cuddling the paths with the -I
# Stick any default switches at the beginning, so they can be overridden
# by the command line switches.
) or exit 1;
# Build up extensions regex
s/^\.// foreach @ext;
# Handle blib includes
} else {
}
}
# Handle lib includes
}
# Build up TH switches
my @tests;
} else {
}
}
sub all_in {
my $start = shift;
local *DH;
} else {
}
}
} else {
}
return @hits;
}
sub shuffle {
# Fisher-Yates shuffle
my $i = @_;
while ($i) {
my $j = rand $i--;
@_[$i, $j] = @_[$j, $i];
}
}
sub print_version {
}
# Stolen directly from blib.pm
sub blibdirs {
}
# Double up the MP::A so that it's not used only once.
}
my $i = 5;
while ($i--) {
}
}
return;
}
prove [options] [files/directories]
-d, --debug Includes extra debugging information.
--ext=x Extensions (defaults to .t)
-h, --help Display this help
-H, --man Longer manpage for prove
-I Add libraries to @INC, as Perl's -I
-r, --recurse Recursively descend into directories.
via C<glob>.
F<prove> has a number of advantages over C<make test> when doing development.
=over 4
suboptimal for a test/code/debug development cycle.
F<prove>'s C<-T> runs your tests under C<perl -T>, and C<-t> runs them
under C<perl -t>.
=item * F<prove> can shuffle tests
=item * Not everything is a module
context of a module distribution, and may not even use a makefile
at all.
=back
=head1 COMMAND LINE OPTIONS
=head2 -b, --blib
=head2 -d, --debug
Include debug information about how F<prove> is being run. This
by -v,--verbose.
=head2 -D, --dry
The --ext is repeatable.
=head2 -I
=head2 -l, --lib
Add C<lib> to @INC. Equivalent to C<-Ilib>.
=head2 -r, --recurse
Descends into subdirectories of any directories specified, looking for tests.
=head2 -s, --shuffle
Sometimes tests are accidentally dependent on tests that have been
run before. This switch will shuffle the tests to be run prior to
running them, thus ensuring that hidden dependencies in the test
order are likely to be revealed. The author hopes the run the
algorithm on the preceding sentence to see if he can produce something
slightly less awkward.
=head2 -t
=head2 -T
=head2 -v, --verbose
Display standard output of test scripts while running them.
=head2 -V, --version
Display version info.
=head1 BUGS
Please use the CPAN bug ticketing system at L<http://rt.cpan.org/>.
You can also mail bugs, fixes and enhancements to
C<< <bug-test-harness@rt.cpan.org> >>.
=head1 TODO
=over 4
=item *
Shuffled tests must be recreatable
=back
=head1 AUTHORS
Andy Lester C<< <andy@petdance.com> >>
=head1 COPYRIGHT
Copyright 2003 by Andy Lester C<< <andy@petdance.com> >>.
modify it under the same terms as Perl itself.
=cut