Skip to content

Commit

Permalink
Find all test files regardless of location
Browse files Browse the repository at this point in the history
With this patch, T::C will find tests in subdirectories or xt/
  • Loading branch information
obra committed Feb 16, 2009
1 parent cf45154 commit af1d381
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Test/Continuous.pm
Expand Up @@ -145,7 +145,12 @@ sub runtests {
}
@prove_args = @ARGV;
} else {
@tests = <t/*.t>;

find sub {
my $filename = $File::Find::name;
return unless $filename =~ /\.t$/ && -f $filename;
push @tests, $filename;
}, getcwd;
}

print "[MSG] Will run continuously test $_\n" for @tests;
Expand Down

0 comments on commit af1d381

Please sign in to comment.