add an opt-in test using Test::DependentModules
Dave Rolsky [Mon, 14 Dec 2009 23:11:17 +0000 (17:11 -0600)]
xt/author/test-my-dependents.t [new file with mode: 0644]

diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t
new file mode 100644 (file)
index 0000000..aab6ffc
--- /dev/null
@@ -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 } );