Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 63 lines (56 sloc) 1.537 kB
3881f59 @stash pod coverage test and fixes
authored
1 #!/usr/bin/perl
2
3 # Ensure pod coverage in your distribution
4 use strict;
5 BEGIN {
6 $| = 1;
7 $^W = 1;
8 }
9
10 my @MODULES = (
11 'Test::Pod::Coverage 1.08',
12 'File::Spec',
13 );
14
15 # Don't run tests during end-user installs
16 use Test::More;
17 plan( skip_all => 'Author tests not required for installation' )
18 unless ( $ENV{RELEASE_TESTING} );
19
20 # Load the testing modules
21 foreach my $MODULE ( @MODULES ) {
22 eval "use $MODULE";
23 if ( $@ ) {
24 $ENV{RELEASE_TESTING}
25 ? die( "Failed to load required release-testing module $MODULE" )
26 : plan( skip_all => "$MODULE not available for testing" );
27 }
28 }
29
30 my %poded = (
31 'Feersum::Connection::Handle' => {
32 pod_from => 'blib/lib/Feersum/Connection/Handle.pm',
33 },
34 'Feersum::Connection::Writer' => {
35 pod_from => 'blib/lib/Feersum/Connection/Handle.pm',
36 },
37 'Feersum::Connection::Reader' => {
38 pod_from => 'blib/lib/Feersum/Connection/Handle.pm',
39 },
40 'Feersum::Connection' => {
41 pod_from => 'blib/lib/Feersum/Connection.pm',
42 },
43 'Feersum::Runner' => {
44 pod_from => 'blib/lib/Feersum/Runner.pm',
45 },
46 'Feersum' => {
47 pod_from => 'blib/lib/Feersum.pm',
48 },
49 'Plack::Handler::Feersum' => {
50 pod_from => 'blib/lib/Plack/Handler/Feersum.pm',
51 },
52 'feersum' => {
53 pod_from => 'blib/script/feersum',
54 },
55 );
56 plan tests => scalar keys %poded;
57 while (my ($mod, $params) = each %poded) {
58 $params->{pod_from} = File::Spec->catfile(split('/',$params->{pod_from}));
59 pod_coverage_ok($mod, $params);
60 }
61
62 1;
Something went wrong with that request. Please try again.