#!/usr/bin/perl -w eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell use strict; use lib 't/lib'; use App::Prove; my $app = App::Prove->new; $app->process_args(@ARGV); $app->run; __END__ =head1 NAME prove - Run tests through a TAP harness. =head1 USAGE prove [options] [files or directories] =head1 OPTIONS Boolean options: -v, --verbose Print all test lines. -l, --lib Add 'lib' to the path for your tests (-Ilib). -b, --blib Add 'blib/lib' to the path for your tests (-Iblib/lib). -s, --shuffle Run the tests in random order. -c, --color Colored test output (default). --nocolor Do not color test output. -f, --failures Only show failed tests. --fork Fork to run harness in multiple processes -m, --merge Merge test scripts' STDERR with their STDOUT. -r, --recurse Recursively descend into directories. --reverse Run the tests in reverse order. -q, --quiet Suppress some test output while running tests. -Q, --QUIET Only print summary results. -p, --parse Show full list of TAP parse errors, if any. --directives Only show results with TODO or SKIP directives. --timer Print elapsed time after each test. -T Enable tainting checks. -t Enable tainting warnings. -W Enable fatal warnings. -w Enable warnings. -h, --help Display this help -?, Display this help -H, --man Longer manpage for prove Options that take arguments: -I Library paths to include. -P Load plugin (searches App::Prove::Plugin::*.) -M Load a module. -e, --exec Interpreter to run the tests ('' for compiled tests.) --harness Define test harness to use. See TAP::Harness. --formatter Result formatter to use. See TAP::Harness. -a, --archive Store the resulting TAP in an archive file. -j, --jobs N Run N test jobs in parallel (try 9.) =head2 Reading from C If you have a list of tests (or URLs, or anything else you want to test) in a file, you can add them to your tests by using a '-': prove - < my_list_of_things_to_test.txt See the C in the C directory of this distribution. =head1 NOTES =head2 Default Test Directory If no files or directories are supplied, C looks for all files matching the pattern C. =head2 Colored Test Output Colored test output is the default, but if output is not to a terminal, color is disabled. You can override this by adding the C<--color> switch. Color support requires L on Unix-like platforms and L windows. If the necessary module is not installed colored output will not be available. =head2 C<--exec> Normally you can just pass a list of Perl tests and the harness will know how to execute them. However, if your tests are not written in Perl or if you want all tests invoked exactly the same way, use the C<-e>, or C<--exec> switch: prove --exec '/usr/bin/ruby -w' t/ prove --exec '/usr/bin/perl -Tw -mstrict -Ilib' t/ prove --exec '/path/to/my/customer/exec' =head2 C<--merge> If you need to make sure your diagnostics are displayed in the correct order relative to test results you can use the C<--merge> option to merge the test scripts' STDERR into their STDOUT. This guarantees that STDOUT (where the test results appear) and STDOUT (where the diagnostics appear) will stay in sync. The harness will display any diagnostics your tests emit on STDERR. Caveat: this is a bit of a kludge. In particular note that if anything that appears on STDERR looks like a test result the test harness will get confused. Use this option only if you understand the consequences and can live with the risk. =head1 PERFORMANCE Because of its design, C collects more information than C. However, the trade-off is sometimes slightly slower performance than when using the C utility which is bundled with L. For small tests suites, this is usually not a problem. However, enabling the C<--quiet> or C<--QUIET> options can sometimes speed up the test suite, sometimes running faster than C. =head1 SEE ALSO C, which comes with L and whose code I've nicked in a few places (thanks Andy!). =head1 CAVEATS This is alpha code. You've been warned. =cut # vim:ts=4:sw=4:et:sta