X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMoose.git;a=blobdiff_plain;f=xt%2Fauthor%2Ftest-my-dependents.t;h=c786ccb1abfd7324a47239d8552327b21e9834f1;hp=646e5018bba99bc010d305e621b8cb828093bf3f;hb=a559205a7d18e6fe2476d0710b253e6674804d9a;hpb=b8e5ce4aa3805b8fa86e2d4c213b78859ee6007b diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t index 646e501..c786ccb 100644 --- a/xt/author/test-my-dependents.t +++ b/xt/author/test-my-dependents.t @@ -5,7 +5,24 @@ use Cwd qw( abs_path ); use Test::More; BEGIN { - plan skip_all => 'This test will not run unless you set MOOSE_TEST_MD to a true value' + my $help = <<'EOF'; + + + This test will not run unless you set MOOSE_TEST_MD to a true value. + Valid values are: + + all Test every distro which depends on Moose except those that we know + cannot be tested. This is a lot of distros (thousands). + + MooseX Test all Moose extension distros + (MooseX modules plus a few others). + + $true Any other true value runs the default tests. We pick 200 random + distros and test them. + +EOF + + plan skip_all => $help unless $ENV{MOOSE_TEST_MD}; } @@ -132,7 +149,10 @@ my @dists = sort map { $_->{fields}{distribution} } @{ $res->{hits}{hits} }; -unless ( $ENV{MOOSE_TEST_MD} eq 'all' ) { +if ( $ENV{MOOSE_TEST_MD} eq 'MooseX' ) { + @dists = grep { /^(?:MooseX-|Fey-ORM)/ } @dists; +} +elsif ( $ENV{MOOSE_TEST_MD} ne 'all' ) { diag( 'Picking 200 random dependents to test. Set MOOSE_TEST_MD=all to test all dependents' );