X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fpod.t;h=0ed796bb7eb59e75400ae8f6730160173d07e4e1;hb=f7ed0ed356e3a637e8de759731fbf9421a47d3c6;hp=d1a62102c1e4ab75e5f3542491af7e6d5bbb34af;hpb=8273e845426f0187b4ad6c4a1b42286fa09a648f;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/pod.t b/xt/pod.t index d1a6210..0ed796b 100644 --- a/xt/pod.t +++ b/xt/pod.t @@ -8,9 +8,13 @@ use DBICTest; require DBIx::Class; unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) { my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_pod'); - (! DBICTest::RunMode->is_plain && ! DBICTest::RunMode->is_smoker ) + $ENV{RELEASE_TESTING} ? die ("Failed to load release-testing module requirements: $missing") : plan skip_all => "Test needs: $missing" } -Test::Pod::all_pod_files_ok(); +# this has already been required but leave it here for CPANTS static analysis +require Test::Pod; + +my $generated_pod_dir = 'maint/.Generated_Pod'; +Test::Pod::all_pod_files_ok( 'lib', -d $generated_pod_dir ? $generated_pod_dir : () );