Browse files

Find all test files regardless of location

With this patch, T::C will find tests in subdirectories or xt/
  • Loading branch information...
1 parent cf45154 commit af1d38180abb1b962f982ad586b36ea4a2286c8d @obra committed Feb 16, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/Test/Continuous.pm
View
7 lib/Test/Continuous.pm
@@ -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;

0 comments on commit af1d381

Please sign in to comment.