Skip to content
Browse files

require TEST_POD environment variable be set before running documenta…

…tion tests.
  • Loading branch information...
1 parent 3e50018 commit 4532839758617153fe933dd59eff6b81178b82f7 Matthew Boyle committed Jun 1, 2010
View
2 common/t/critic.t
@@ -6,6 +6,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/../lib";
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Perl::Critic';
plan (
skip_all => "Test::Perl::Critic required for testing coding standard"
View
9 common/t/no-fixes.t
@@ -11,9 +11,16 @@ use strict;
use English qw(-no_match_vars);
use File::Find;
use FindBin;
-use Test::More tests => 1;
+use Test::More;
use Pod::Simple::TextContent;
+if ($ENV{TEST_POD}) {
+ plan tests => 1;
+}
+else {
+ plan skip_all => 'set TEST_POD to enable this test'
+}
+
my $count = 0;
find(\&fixes, "$FindBin::Bin/../lib");
View
2 common/t/pod-coverage.t
@@ -6,6 +6,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/../lib";
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Pod::Coverage';
plan (
skip_all => "Test::Pod::Coverage required for testing POD coverage"
View
2 common/t/pod.t
@@ -6,6 +6,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/../lib";
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Pod';
plan (
skip_all => "Test::Pod required for testing for POD errors"
View
2 master/t/critic.t
@@ -6,6 +6,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/../lib";
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Perl::Critic';
plan (
skip_all => "Test::Perl::Critic required for testing coding standard"
View
9 master/t/no-fixes.t
@@ -11,9 +11,16 @@ use strict;
use English qw(-no_match_vars);
use File::Find;
use FindBin;
-use Test::More tests => 1;
+use Test::More;
use Pod::Simple::TextContent;
+if ($ENV{TEST_POD}) {
+ plan tests => 1;
+}
+else {
+ plan skip_all => 'set TEST_POD to enable this test'
+}
+
my $count = 0;
find(\&fixes, "$FindBin::Bin/../lib");
View
2 master/t/pod-coverage.t
@@ -6,6 +6,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/../lib";
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Pod::Coverage';
plan (
skip_all => "Test::Pod::Coverage required for testing POD coverage"
View
2 master/t/pod.t
@@ -6,6 +6,8 @@ use Test::More;
use FindBin;
use lib "$FindBin::Bin/../lib";
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Pod';
plan (
skip_all => "Test::Pod required for testing for POD errors"
View
2 node/t/no-fixes.t
@@ -15,7 +15,7 @@ use Test::More;
use Pod::Simple::TextContent;
if ($ENV{TEST_POD}) {
- plan tests => 5;
+ plan tests => 1;
}
else {
plan skip_all => 'set TEST_POD to enable this test'
View
2 plugins/t/critic.t
@@ -3,6 +3,8 @@ use warnings;
use Test::More;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Perl::Critic';
plan (
skip_all => "Test::Perl::Critic required for testing coding standard"
View
9 plugins/t/no-fixes.t
@@ -11,9 +11,16 @@ use strict;
use English qw(-no_match_vars);
use File::Find;
use FindBin;
-use Test::More tests => 1;
+use Test::More;
use Pod::Simple::TextContent;
+if ($ENV{TEST_POD}) {
+ plan tests => 1;
+}
+else {
+ plan skip_all => 'set TEST_POD to enable this test'
+}
+
my $count = 0;
find(\&fixes, "$FindBin::Bin/../lib");
View
2 plugins/t/pod-coverage.t
@@ -3,6 +3,8 @@ use warnings;
use Test::More;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Pod::Coverage';
plan (
skip_all => "Test::Pod::Coverage required for testing POD coverage"
View
2 plugins/t/pod.t
@@ -3,6 +3,8 @@ use warnings;
use Test::More;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
eval 'use Test::Pod';
plan (
skip_all => "Test::Pod required for testing for POD errors"

0 comments on commit 4532839

Please sign in to comment.
Something went wrong with that request. Please try again.