NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Similar (Score:5, Interesting)
For some of our longer running tests at work, I check for an environment variable named "FAST_TESTS" and skip long running tests using that. The start of my test_all program looks like this (and takes a -f as an argument for fast tests)
#!/usr/bin/perl -wuse strict;
use Test::Harness;
use Getopt::Long;
use Pod::Usage;
GetOptions(
'help|?' => sub { pod2usage(-verbose => 2); exit },
'verbose!' => \$Test::Harness::verbose,
'quiet' => sub { $Test::Harness::verbose = 0 },
'fast' => \$ENV{FAST_TESTS},
'include=s' => \my @include,
'exclude=s' => \my @exclude
);
Reply to This