Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday November 29, 2007
05:22 AM

Why is this failing?

[ #35004 ]

I'm getting a lot of failures for Test::Aggregate 0.02. The failures are along the lines of this one:

t/aggregate....# Testing Test::Aggregate 0.02, Perl 5.008006, /home/cpan/perl586/bin/perl
Don't know which tests failed: got 12 ok, expected 0

I haven't been able to reproduce this on Mac OS X, Windows or Solaris. Is anyone able to look into this and tell me what I did wrong?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • The problem is the test isn't outputting a plan... I get

    $ perl -Mblib t/aggregate.t
    ok 1 - use Test::Aggregate;
    ok 2 - use Slow::Loading::Module;
    ok 3 - ******** running tests for aggtests/00-load.t ********
    # Testing Test::Aggregate 0.02, Perl 5.008008, /home/mauzo/src/perl/oldperls/install/5.8.8-multi-debug/bin/perl
    ok 4 - ******** running tests for aggtests/boilerplate.t ********
    ok 5 - README contains no boilerplate text
    ok 6 - Changes contains no boilerplate text
    ok 7 - lib/Test/Aggregate.pm contains no boiler
    • A ha! That's very interesting. Do you have Test::Pod 1.14 or better installed? I'm guessing you don't.

      The tests are halting prematurely and I think I need to figure out a better way to handle 'skip_all'. Here's what the test results should really look like:

      $ prove -v t
      t/aggregate......
      ok 1 - use Test::Aggregate;
      ok 2 - use Slow::Loading::Module;
      ok 3 - ******** running tests for aggtests/00-load.t ********
      ok 4 - ******** running tests for aggtests/boilerplate.t ********
      # Testing Test::Aggregate 0.02,

      • No, no Test::Pod installed at all on this copy of perl.
        • I've verified that this is actually the problem. I'll get another release out tonight. It will probably be an interim release to get the tests passing and later I will think a bit more about how to resolve this. Thanks for your help!

          • It fails reliably on my CentOS 4.3 VM - which I'll have with me at the weekend - so we can play then if it's still a problem :)
            • Version 0.03 [cpan.org] is now available. That should fix the problem.

              • andy@spore Test-Aggregate-0.03]$ perl Makefile.PL
                Checking if your kit is complete...
                Looks good
                Writing Makefile for Test::Aggregate
                [andy@spore Test-Aggregate-0.03]$ make test
                cp lib/Test/Aggregate.pm blib/lib/Test/Aggregate.pm
                PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
                t/aggregate.........2/0 # Testing Test::Aggregate 0.03, Perl 5.008005, /usr/bin/perl
                t/aggregate.........ok
                t/pod-coverage......skipped: Test::Pod::Coverage 1.04 required for test