]> iEval git - gruntmaster-page.git/commitdiff
Do not run t/mech.t if AUTHOR_TESTING is false
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 21:58:04 +0000 (23:58 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Feb 2014 21:58:04 +0000 (23:58 +0200)
t/mech.t

index 5ea673b0fa10613e38a75b290df91d298d6b52f0..6a30b18dccb8ae799ceafe42035f79040bb2b1df 100644 (file)
--- a/t/mech.t
+++ b/t/mech.t
@@ -2,7 +2,11 @@
 use strict;
 use warnings;
 
-use Test::More tests => 5;
+use Test::More;
+BEGIN {
+       plan skip_all => '$ENV{AUTHOR_TESTING} is false, skipping tests' unless $ENV{AUTHOR_TESTING};
+       plan tests    => 5;
+}
 use Test::WWW::Mechanize::PSGI;
 
 my $mech = Test::WWW::Mechanize::PSGI->new(app => do 'app.psgi');
This page took 0.02737 seconds and 4 git commands to generate.