Skip to content

Commit

Permalink
Skip track_confirm.t if USPS_WEBTOOLS_USERID is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Sep 22, 2020
1 parent 8825cac commit 507e1d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/track_confirm.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ use Test::More;
my $class = "Business::US::USPS::WebTools::TrackConfirm";
my $method = 'track';

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
unless( $ENV{USPS_WEBTOOLS_USERID} and $ENV{USPS_WEBTOOLS_PASSWORD} )
{
plan skip_all =>
"You must set the USPS_WEBTOOLS_USERID and USPS_WEBTOOLS_PASSWORD " .
"environment variables to run these tests\n";
}

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
subtest setup => sub {
Expand Down

0 comments on commit 507e1d7

Please sign in to comment.