Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

mark more author tests properly #2

Open
wants to merge 1 commit into from

1 participant

@wchristian
Collaborator

A number of author tests weren't marked as such and caused pointless test failures on user systems. This commit fixes that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 3, 2013
  1. @wchristian
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 0 deletions.
  1. +5 −0 t/boilerplate.t
  2. +5 −0 t/pod-coverage.t
  3. +5 −0 t/pod.t
View
5 t/boilerplate.t
@@ -4,6 +4,11 @@ use strict;
use warnings;
use Test::More tests => 3;
+if ( not $ENV{TEST_AUTHOR} ) {
+ my $msg = 'Author test. Set $ENV{TEST_AUTHOR} to a true value to run.';
+ plan( skip_all => $msg );
+}
+
sub not_in_file_ok {
my ($filename, %regex) = @_;
open( my $fh, '<', $filename )
View
5 t/pod-coverage.t
@@ -2,6 +2,11 @@ use strict;
use warnings;
use Test::More;
+if ( not $ENV{TEST_AUTHOR} ) {
+ my $msg = 'Author test. Set $ENV{TEST_AUTHOR} to a true value to run.';
+ plan( skip_all => $msg );
+}
+
# Ensure a recent version of Test::Pod::Coverage
my $min_tpc = 1.08;
eval "use Test::Pod::Coverage $min_tpc";
View
5 t/pod.t
@@ -4,6 +4,11 @@ use strict;
use warnings;
use Test::More;
+if ( not $ENV{TEST_AUTHOR} ) {
+ my $msg = 'Author test. Set $ENV{TEST_AUTHOR} to a true value to run.';
+ plan( skip_all => $msg );
+}
+
# Ensure a recent version of Test::Pod
my $min_tp = 1.22;
eval "use Test::Pod $min_tp";
Something went wrong with that request. Please try again.