Skip to content

Commit

Permalink
Added t/dist.t
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 29, 2016
1 parent afab917 commit c777046
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ t/changes.t
t/coverage.t
t/critic.t
t/cv.t
t/dist.t
META.yml Module meta-data (added by MakeMaker)
19 changes: 19 additions & 0 deletions t/dist.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
use strict;
use warnings;

use Test::Most;

BEGIN {
if($ENV{RELEASE_TESTING}) {
eval {
require Test::Distribution;
};
if($@) {
plan(skip_all => 'Test::Distribution not installed');
} else {
import Test::Distribution;
}
} else {
plan(skip_all => 'Author tests not required for installation');
}
}

0 comments on commit c777046

Please sign in to comment.