use consistant messages for WEBGUI_LIVE tests

This commit is contained in:
Graham Knop 2009-09-08 22:56:01 -05:00
parent 2948e68781
commit f6be0746f3
2 changed files with 6 additions and 9 deletions

View file

@ -74,9 +74,8 @@ if ( !$mech->success ) {
plan skip_all => "Cannot load URL '$baseUrl'. Will not test."; plan skip_all => "Cannot load URL '$baseUrl'. Will not test.";
} }
if ( !$ENV{WEBGUI_LIVE}) { plan skip_all => 'set WEBGUI_LIVE to enable this test'
plan skip_all => "Live tests not enabled"; unless $ENV{WEBGUI_LIVE};
}
plan tests => 8; # Increment this number for each test you create plan tests => 8; # Increment this number for each test you create

View file

@ -22,12 +22,10 @@ use Test::More;
use Test::Deep; use Test::Deep;
use Data::Dumper; use Data::Dumper;
if (!$ENV{WEBGUI_LIVE}) { plan skip_all => 'set WEBGUI_LIVE to enable this test'
plan skip_all => 'No website available'; unless $ENV{WEBGUI_LIVE};
}
else {
plan tests => 14; # increment this value for each test you create plan tests => 14; # increment this value for each test you create
}
my $session = WebGUI::Test->session; my $session = WebGUI::Test->session;