-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Test::DescribeMe to simplify tests
- Loading branch information
1 parent
a7e86ae
commit 97f4ca6
Showing
14 changed files
with
53 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::DescribeMe qw(author); | ||
use Test::Most; | ||
|
||
if($ENV{AUTHOR_TESTING}) { | ||
eval "use Test::Kwalitee tests => [ qw( -has_meta_yml ) ]"; | ||
eval "use Test::Kwalitee tests => [ qw( -has_meta_yml ) ]"; | ||
|
||
if($@) { | ||
plan(skip_all => 'Test::Kwalitee not installed; skipping') if $@; | ||
} else { | ||
unlink('Debian_CPANTS.txt') if -e 'Debian_CPANTS.txt'; | ||
} | ||
if($@) { | ||
plan(skip_all => 'Test::Kwalitee not installed; skipping') if $@; | ||
} else { | ||
plan(skip_all => 'Author tests not required for installation'); | ||
unlink('Debian_CPANTS.txt') if -e 'Debian_CPANTS.txt'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
#!perl -w | ||
|
||
use strict; | ||
use Test::Most; | ||
|
||
unless($ENV{'AUTHOR_TESTING'}) { | ||
plan(skip_all => 'Author tests not required for installation'); | ||
} | ||
use Test::DescribeMe qw(author); | ||
use Test::Most; | ||
use Test::Needs 'Test::Module::Used'; | ||
|
||
eval 'use Test::Module::Used'; | ||
if($@) { | ||
plan(skip_all => 'Test::Module::Used required for testing all modules needed'); | ||
} else { | ||
my $used = Test::Module::Used->new(meta_file => 'MYMETA.yml'); | ||
$used->ok(); | ||
} | ||
my $used = Test::Module::Used->new(meta_file => 'MYMETA.yml'); | ||
$used->ok(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters