Plan in advance when we know which modules we're going to test.
Florian Ragwitz [Sat, 1 May 2010 16:48:46 +0000 (18:48 +0200)]
xt/author/test-my-dependents.t

index 01b7820..bdcc08a 100644 (file)
@@ -17,11 +17,12 @@ my $exclude = qr/^Acme-/x;
 
 if ( $ENV{MOOSE_TEST_MD_ALL} ) {
     test_all_dependents( 'Moose', { exclude => $exclude } );
+    done_testing;
 }
 else {
     my @modules = map { chomp; $_ } <DATA>;
+    plan tests => scalar @modules;
     test_module($_) for @modules;
-    done_testing;
 }
 
 __DATA__