I decided to update my DateTime::Calendar::Discordian but the CPAN Testers are reporting lots of failures with the new version like e.g. this:
t/04-perl-critic.....................Can't locate Test/Perl/Critic.pm
+in
@INC (@INC contains:
/usr/home/david/cpantesting/perl-5.10.0/.cpan/build/DateTime-Calendar-
+Disc
ordian-0.9.5-R6NHvJ/blib/lib
/usr/home/david/cpantesting/perl-5.10.0/.cpan/build/DateTime-Calendar-
+Disc
ordian-0.9.5-R6NHvJ/blib/arch
/home/david/cpantesting/perl-5.10.0/lib/5.10.0/i386-freebsd-thread-mul
+ti
/home/david/cpantesting/perl-5.10.0/lib/5.10.0/i386-freebsd-thread-mul
+ti
/home/david/cpantesting/perl-5.10.0/lib/5.10.0
/home/david/cpantesting/perl-5.10.0/lib/site_perl/5.10.0/i386-freebsd-
+thre
ad-multi
/home/david/cpantesting/perl-5.10.0/lib/site_perl/5.10.0/i386-freebsd-
+thre
ad-multi /home/david/cpantesting/perl-5.10.0/lib/site_perl/5.10.0 .
/home/david/cpantesting/perl-5.10.0/lib/5.10.0/i386-freebsd-thread-mul
+ti
/home/david/cpantesting/perl-5.10.0/lib/5.10.0
/home/david/cpantesting/perl-5.10.0/lib/site_perl/5.10.0/i386-freebsd-
+thre
ad-multi /home/david/cpantesting/perl-5.10.0/lib/site_perl/5.10.0 .) a
+t
t/04-perl-critic.t line 14.
BEGIN failed--compilation aborted at t/04-perl-critic.t line 14.
# Looks like your test died before it could output anything.
dubious
...on lots of different perl versions and OS's.
The failing test looks like this:
use strict;
use warnings;
use English qw(-no_match_vars);
use Test::More;
if ( not $ENV{TEST_AUTHOR} ) {
my $msg = 'Author test. Set $ENV{TEST_AUTHOR} to a true value to
+run.';
plan( skip_all => $msg );
}
eval { use Test::Perl::Critic (-profile => 't/perlcriticrc'); };
if ( $EVAL_ERROR ) {
my $msg = 'Test::Perl::Critic required to criticise code';
plan( skip_all => $msg );
}
all_critic_ok()
What gives? The eval should catch if Test::Perl::Critic is not installed right?
I am using a similar idiom for tests using Test::Pod and Test::Pod::Coverage and they aren't causing problems.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|