Expand closed STDERR test, check actual exception
[dbsrgits/DBIx-Class.git] / xt / pod.t
CommitLineData
dc4600b2 1use warnings;
2use strict;
3
0fe5201a 4use Test::More;
dc4600b2 5use lib qw(t/lib);
6use DBICTest;
7
a109c954 8require DBIx::Class;
9unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) {
10 my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_pod');
20884f55 11 $ENV{RELEASE_TESTING}
a109c954 12 ? die ("Failed to load release-testing module requirements: $missing")
13 : plan skip_all => "Test needs: $missing"
dc4600b2 14}
0fe5201a 15
f7ed0ed3 16# this has already been required but leave it here for CPANTS static analysis
17require Test::Pod;
18
95252a8c 19my $generated_pod_dir = 'maint/.Generated_Pod';
20Test::Pod::all_pod_files_ok( 'lib', -d $generated_pod_dir ? $generated_pod_dir : () );