Skip to content

Commit

Permalink
require TEST_POD environment variable be set before running documenta…
Browse files Browse the repository at this point in the history
…tion tests.
  • Loading branch information
Matthew Boyle committed Jun 1, 2010
1 parent 3e50018 commit 4532839
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 4 deletions.
2 changes: 2 additions & 0 deletions common/t/critic.t
Expand Up @@ -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"
Expand Down
9 changes: 8 additions & 1 deletion common/t/no-fixes.t
Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions common/t/pod-coverage.t
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions common/t/pod.t
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions master/t/critic.t
Expand Up @@ -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"
Expand Down
9 changes: 8 additions & 1 deletion master/t/no-fixes.t
Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions master/t/pod-coverage.t
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions master/t/pod.t
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion node/t/no-fixes.t
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions plugins/t/critic.t
Expand Up @@ -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"
Expand Down
9 changes: 8 additions & 1 deletion plugins/t/no-fixes.t
Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions plugins/t/pod-coverage.t
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions plugins/t/pod.t
Expand Up @@ -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"
Expand Down

0 comments on commit 4532839

Please sign in to comment.