From: Marius Gavrilescu Date: Fri, 28 Feb 2014 21:58:04 +0000 (+0200) Subject: Do not run t/mech.t if AUTHOR_TESTING is false X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=f06598163e56880bfe2004262adf59f7474c687e;p=gruntmaster-page.git Do not run t/mech.t if AUTHOR_TESTING is false --- diff --git a/t/mech.t b/t/mech.t index 5ea673b..6a30b18 100644 --- 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');