skip POD tests unless IMAGER_AUTHOR_TESTING or AUTOMATED_TESTING is set
authorTony Cook <tony@develop-help.com>
Sat, 20 Jul 2013 05:58:22 +0000 (15:58 +1000)
committerTony Cook <tony@develop-help.com>
Sat, 20 Jul 2013 05:58:22 +0000 (15:58 +1000)
Changes
t/t91pod.t
t/t93podcover.t

diff --git a/Changes b/Changes
index 064dcef..bdabedf 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
 Revision history for Perl extension Imager::Graph.
 
+ - POD fixes based on a report from Stefan Limbache
+
+ - skip POD tests unless AUTOMATED_TESTING or IMAGER_AUTHOR_TESTING is
+   set.
+
 Imager-Graph 0.10 - 7 May 2012
 =================
 
index db41c41..13d8ce5 100644 (file)
@@ -2,6 +2,8 @@
 use strict;
 use Test::More;
 use ExtUtils::Manifest qw(maniread);
+$ENV{AUTOMATED_TESTING} || $ENV{IMAGER_AUTHOR_TESTING}
+  or plan skip_all => "POD only tested under automated or author testing";
 eval "use Test::Pod 1.00;";
 plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
 all_pod_files_ok();
index 6d07743..00adee2 100644 (file)
@@ -1,6 +1,8 @@
 #!perl -w
 use strict;
 use Test::More;
+$ENV{AUTOMATED_TESTING} || $ENV{IMAGER_AUTHOR_TESTING}
+  or plan skip_all => "POD only tested under automated or author testing";
 eval "use Test::Pod::Coverage 1.08;";
 # 1.08 required for coverage_class support
 plan skip_all => "Test::Pod::Coverage 1.08 required for POD coverage" if $@;