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.

--
જલધર


In reply to Why is my test failing? by jaldhar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.