Stories
Slash Boxes
Comments
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

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday September 18, 2008
05:11 AM

Which Tests Can I Aggregate?

[ #37479 ]

Rufus Cable wrote a small program which allows me to easily see which tests can be aggregated. I intend to include this with the new Test::Aggregate distribution.

my @expanded_matches = map { glob($_) } @ARGV;
my $re_match = join('|', map { quotemeta } @expanded_matches);

use Test::Aggregate;
my $tests = Test::Aggregate->new({
    dirs            => 'aggtests/',
    matching        => qr/$re_match/,
    set_filenames   => 1,
    dump            => 'dump.t',
    verbose         => 2,
    test_nowarnings => 0,
    check_plan      => 1,
});
$tests->run;

Basically, you just point it at the directories you need and it will run those tests in aggregate. Assuming this is saved as bin/aggtests:

prove --nocount bin/aggtests :: t/customers/ t/orders/

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.