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 | |
dc4600b2 |
8 | # Don't run tests for installs |
39c9c72d |
9 | if ( DBICTest::RunMode->is_plain ) { |
dc4600b2 |
10 | plan( skip_all => "Author tests not required for installation" ); |
11 | } |
0fe5201a |
12 | |
a109c954 |
13 | require DBIx::Class; |
14 | unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_pod') ) { |
15 | my $missing = DBIx::Class::Optional::Dependencies->req_missing_for ('test_pod'); |
39c9c72d |
16 | (! DBICTest::RunMode->is_plain && ! DBICTest::RunMode->is_smoker ) |
a109c954 |
17 | ? die ("Failed to load release-testing module requirements: $missing") |
18 | : plan skip_all => "Test needs: $missing" |
dc4600b2 |
19 | } |
0fe5201a |
20 | |
a109c954 |
21 | Test::Pod::all_pod_files_ok(); |