in reply to The chicken and the egg (or how do I pass the module test)

Is your email address correctly configured at PAUSE? Maybe something is blocking mail from cpan testers on your system?

The test failure: you can skip tests if some condition is not met. E.g.

my $obj = Class->new(); SKIP: { skip("The object could not be instantiated", $number_of_tests_to_s +kip) if !$obj; # more tests here to come }

And the answer for the last question is "yes".

Replies are listed 'Best First'.
Re^2: The chicken and the egg (or how do I pass the module test)
by ruzam (Curate) on Dec 22, 2007 at 04:30 UTC
    As far as I know my email address is correctly configured at PAUSE. That is to say, I do get the PAUSE notices of uploads and indexer reports. Just not the test failures apparently. I briefly signed up on cpan-testers (anyone claiming perl is dead should spend an hour sorting through this list). But I don't think I'll try that again ;)

    I added more to the test script. Several more tests to check the results of the modem info values, and a SKIP block to ignore the tests that don't apply if there's no modem connected.

    Version 0.02 was packaged and uploaded :) I guess I'll just sit and wait for the new version to turn up and check the failure status again.

      CPANPLUS based smoke testers will only notify the module author of a FAIL if they detect that this is the first time it has failed.

      They do this by retrieving a yml file from http://cpantesters.perl.org

      What this means in practise, is that the first CPAN Tester to report a FAIL might not send a copy of the report to the author and then subsequent testers don't either.

      The default behaviour of Test::Reporter is to send email via Net::SMTP direct to the appropriate server for 'cpan-testers@perl.org', which won't relay for authors' email addresses. ( May be will in they are a @cpan.org redirector (?) ).

      Oh well. Good work anyways.

        CPANPLUS based smoke testers will only notify the module author of a FAIL if they detect that this is the first time it has failed.
        For me, I like to get *every* fail report, especially for distributions like Tk where things like different window managers may cause different fail reports. The fail reports on nntp.perl.org do not have a complete From: address, so there's no possibility for me to ask the tester for more information.

        I think CPAN::Reporter always uses the @cpan.org address of the author, so there usually no problem here.