This code belogs in Storage::DBI
[dbsrgits/DBIx-Class-Historic.git] / t / 02pod.t
CommitLineData
dc4600b2 1use warnings;
2use strict;
3
0fe5201a 4use Test::More;
dc4600b2 5use lib qw(t/lib);
6use DBICTest;
7
8my @MODULES = (
9 'Test::Pod 1.26',
10);
11
12# Don't run tests for installs
13unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) {
14 plan( skip_all => "Author tests not required for installation" );
15}
0fe5201a 16
dc4600b2 17# Load the testing modules
18foreach my $MODULE ( @MODULES ) {
19 eval "use $MODULE";
20 if ( $@ ) {
21 $ENV{RELEASE_TESTING}
22 ? die( "Failed to load required release-testing module $MODULE" )
23 : plan( skip_all => "$MODULE not available for testing" );
24 }
25}
0fe5201a 26
27all_pod_files_ok();