skip Perl::Critic tests if unable to load modules
This commit is contained in:
parent
2cce90f150
commit
c84c8b0dc6
1 changed files with 3 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ use WebGUI::Session;
|
|||
|
||||
##Delay this so that the skip_all can work the way it should
|
||||
eval { require Test::Perl::Critic; };
|
||||
if ($@) {
|
||||
plan skip_all => "Test::Perl::Critic not installed";
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue