From: Dave Rolsky Date: Mon, 14 Dec 2009 23:11:17 +0000 (-0600) Subject: add an opt-in test using Test::DependentModules X-Git-Tag: 0.93_01~32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f81522ba0fd4d8281b2f3246d281394c18eb4e94;p=gitmo%2FMoose.git add an opt-in test using Test::DependentModules --- diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t new file mode 100644 index 0000000..aab6ffc --- /dev/null +++ b/xt/author/test-my-dependents.t @@ -0,0 +1,18 @@ +use strict; +use warnings; + +use Cwd qw( abs_path ); +use Test::More; + +plan skip_all => 'This test will not run unless you set MOOSE_TEST_MD to a true value' + unless $ENV{MOOSE_TEST_MD}; + +eval 'use Test::DependentModules qw( test_all_dependents );'; +plan skip_all => 'This test requires Test::DependentModules' + if $@; + +$ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.'); + +my $exclude = qr/^Acme-/x; + +test_all_dependents( 'Moose', { exclude => $exclude } );