diff --git a/t/Asset/Event/edit.t b/t/Asset/Event/edit.t index de716e025..c2e73acbf 100644 --- a/t/Asset/Event/edit.t +++ b/t/Asset/Event/edit.t @@ -74,9 +74,8 @@ if ( !$mech->success ) { plan skip_all => "Cannot load URL '$baseUrl'. Will not test."; } -if ( !$ENV{WEBGUI_LIVE}) { - plan skip_all => "Live tests not enabled"; -} +plan skip_all => 'set WEBGUI_LIVE to enable this test' + unless $ENV{WEBGUI_LIVE}; plan tests => 8; # Increment this number for each test you create diff --git a/t/Workflow/Activity/CalendarUpdateFeeds.t b/t/Workflow/Activity/CalendarUpdateFeeds.t index 7a9591738..7c1392e97 100644 --- a/t/Workflow/Activity/CalendarUpdateFeeds.t +++ b/t/Workflow/Activity/CalendarUpdateFeeds.t @@ -22,12 +22,10 @@ use Test::More; use Test::Deep; use Data::Dumper; -if (!$ENV{WEBGUI_LIVE}) { - plan skip_all => 'No website available'; -} -else { - plan tests => 14; # increment this value for each test you create -} +plan skip_all => 'set WEBGUI_LIVE to enable this test' + unless $ENV{WEBGUI_LIVE}; + +plan tests => 14; # increment this value for each test you create my $session = WebGUI::Test->session;