Commit | Line | Data |
dc4600b2 |
1 | use warnings; |
2 | use strict; |
3 | |
0fe5201a |
4 | use Test::More; |
dc4600b2 |
5 | use lib qw(t/lib); |
6 | use DBICTest; |
7 | |
a109c954 |
8 | require DBIx::Class; |
9 | unless ( 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 |
17 | require Test::Pod; |
18 | |
95252a8c |
19 | my $generated_pod_dir = 'maint/.Generated_Pod'; |
20 | Test::Pod::all_pod_files_ok( 'lib', -d $generated_pod_dir ? $generated_pod_dir : () ); |