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/