Subject: | Test::Perl::Critic Bug with |
Date: | Thu, 14 Dec 2006 13:44:55 -0600 (CST) |
To: | bug-Test-Perl-Critic [...] rt.cpan.org |
From: | Steve Kirkup <steve.kirkup [...] greatlodge.com> |
Jeff,
I was playing with Test::Perl::Critic and ran into a problem.
#---------------------
use Test::Perl::Critic;
for (qw(Config.pm
Division.pm
Game.pm
League.pm
Manager.pm
News.pm
Player.pm
Team.pm
Webapp.pm)) {
critic_ok( "lib/EEBL/$_" ); #Test one file
}
critic_ok("lib/EEBL.pm" );
#---------------------
This blows up because I did not declare a plan. However there is no interface for declaring a Test plan for individual files. I looked at the code and when using the all_critic_ok() you declare a test plan there. I think you forgot to allow something so that it can be manually overridden. (like in my case).
Steve Kirkup