Skip to content

Commit

Permalink
More Test::DescribeMe
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 28, 2024
1 parent 7a8d2e3 commit 437a9da
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
11 changes: 4 additions & 7 deletions t/cover.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs 'Test::Strict';

if($ENV{'AUTHOR_TESTING'}) {
Test::Strict->import();
all_perl_files_ok();
all_cover_ok(80); # at least 80% coverage
} else {
plan(skip_all => 'Author tests not required for installation');
}
Test::Strict->import();
all_perl_files_ok();
all_cover_ok(80); # at least 80% coverage
11 changes: 3 additions & 8 deletions t/cv.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@

use strict;
use warnings;
use Test::Most;

if(!$ENV{'AUTHOR_TESTING'}) {
plan(skip_all => 'Author tests not required for installation');
}

eval 'use Test::ConsistentVersion';

plan(skip_all => 'Test::ConsistentVersion required for checking versions') if $@;
use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs 'Test::ConsistentVersion';

Test::ConsistentVersion::check_consistent_versions();
12 changes: 5 additions & 7 deletions t/manifest.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs { 'Test::CheckManifest' => '0.9' };

if($ENV{AUTHOR_TESTING}) {
eval 'use Test::CheckManifest 0.9';
plan(skip_all => 'Test::CheckManifest 0.9 required') if $@;
ok_manifest({ filter => [qr/(\.git)|(\..+\.yml$)/] });
} else {
plan(skip_all => 'Author tests not required for installation');
}
Test::CheckManifest->import();
ok_manifest({ filter => [qr/(\.git)|(\..+\.yml$)/] });
1 change: 1 addition & 0 deletions t/unused.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Most;
use Test::Needs { 'warnings::unused' => '0.04' };
Expand Down
1 change: 1 addition & 0 deletions t/version.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use strict;
use warnings;

use Test::DescribeMe qw(author);
use Test::Needs 'Test::Version';
use Test::Most;
Expand Down

0 comments on commit 437a9da

Please sign in to comment.