X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpodcoverage.t;h=40041acfb6fb0316a56de1fdbd1fba5783f6af44;hb=95252a8cb02e0d6fb5914d02a782bd3e1b20c882;hp=2cd6c524838b47683af209031cffd9d752a62f90;hpb=a4367b26b7b086d368880cd4d822eb4fb34603e7;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/podcoverage.t b/xt/podcoverage.t index 2cd6c52..40041ac 100644 --- a/xt/podcoverage.t +++ b/xt/podcoverage.t @@ -3,14 +3,14 @@ use strict; use Test::More; use List::Util 'first'; -use lib qw(t/lib); +use lib qw(t/lib maint/.Generated_Pod); use DBICTest; use namespace::clean; require DBIx::Class; unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_podcoverage') ) { my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_podcoverage'); - $ENV{RELEASE_TESTING} || DBICTest::RunMode->is_author + $ENV{RELEASE_TESTING} ? die ("Failed to load release-testing module requirements: $missing") : plan skip_all => "Test needs: $missing" } @@ -159,7 +159,7 @@ for my $string (keys %$exceptions) { $ex_lookup->{$re} = $ex; } -my @modules = sort { $a cmp $b } (Test::Pod::Coverage::all_modules()); +my @modules = sort { $a cmp $b } Test::Pod::Coverage::all_modules('lib'); foreach my $module (@modules) { SKIP: {