Skip to content

Commit

Permalink
Added coverage.t
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 25, 2016
1 parent eab57f7 commit b0a877d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions t/coverage.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
use strict;
use warnings;
use Test::Most;

# Ensure a recent version of Test::Pod::Coverage
my $min_tpc = 1.08;
eval "use Test::Pod::Coverage $min_tpc";
plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
if $@;

# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
# but older versions don't recognize some common documentation styles
my $min_pc = 0.18;
eval "use Pod::Coverage $min_pc";
plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
if $@;

if(not $ENV{RELEASE_TESTING}) {
plan(skip_all => 'Author tests not required for installation');
}
all_pod_coverage_ok();

0 comments on commit b0a877d

Please sign in to comment.