diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2014-10-09 20:59:42 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2014-10-09 20:59:42 +0100 |
commit | 70d9fa0ed3c830bfe1a92fd122005d557c3d6e8b (patch) | |
tree | 4d96e87134c33d3357586c0b8d0ca48ecfd32969 /t | |
parent | 513339073055a1d0742a4e370fe967e16896e45d (diff) | |
download | perl-libnet-70d9fa0ed3c830bfe1a92fd122005d557c3d6e8b.tar.gz |
Skip Perl Critic, Pod and Pod Coverage tests unless AUTHOR_TESTING
Even after telling Perl::Critic to use its default policy configuration we may still see unexpected failures from CPAN Testers resulting from different versions of Perl::Critic having different policies. Pod tests may likewise have unexpected failures caused by users having different versions of the testing modules to the author. None of these tests are relevant to users anyway, so disable them by checking for $ENV{AUTHOR_TESTING}, as per the Lancaster Consensus. Resolves CPAN RT#99399.
Diffstat (limited to 't')
-rw-r--r-- | t/critic.t | 2 | ||||
-rw-r--r-- | t/pod.t | 2 | ||||
-rw-r--r-- | t/pod_coverage.t | 2 |
3 files changed, 6 insertions, 0 deletions
@@ -27,6 +27,8 @@ use Test::More; #===============================================================================
MAIN: {
+ plan skip_all => 'Author testing only' unless $ENV{AUTHOR_TESTING};
+
my $ok = eval {
require Test::Perl::Critic;
Test::Perl::Critic->import(-profile => '');
@@ -27,6 +27,8 @@ use Test::More; #===============================================================================
MAIN: {
+ plan skip_all => 'Author testing only' unless $ENV{AUTHOR_TESTING};
+
my $ok = eval {
require Test::Pod;
Test::Pod->import();
diff --git a/t/pod_coverage.t b/t/pod_coverage.t index d72778c..56f6401 100644 --- a/t/pod_coverage.t +++ b/t/pod_coverage.t @@ -27,6 +27,8 @@ use Test::More; #===============================================================================
MAIN: {
+ plan skip_all => 'Author testing only' unless $ENV{AUTHOR_TESTING};
+
my $ok = eval {
require Test::Pod::Coverage;
Test::Pod::Coverage->import();
|