From: Florian Ragwitz Date: Sat, 1 May 2010 16:48:46 +0000 (+0200) Subject: Plan in advance when we know which modules we're going to test. X-Git-Tag: 1.02~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=93eeffdf8ffb33cb01f6982a7be82eb604fc1e4c;p=gitmo%2FMoose.git Plan in advance when we know which modules we're going to test. --- diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t index 01b7820..bdcc08a 100644 --- a/xt/author/test-my-dependents.t +++ b/xt/author/test-my-dependents.t @@ -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; $_ } ; + plan tests => scalar @modules; test_module($_) for @modules; - done_testing; } __DATA__