Continuing my journey towards CPAN module submission (see Preparing for my first CPAN submission).

After some pesky last minute updates/testing I've packaged my module and submitted it to CPAN (Device-CableModem-SURFboard-0.01). Things were looking pretty good. Pretty good that is until I noticed that CPAN Testers reported 17 fails (Reports for Device-CableModem-SURFboard).

The test failure isn't un-expected. The one test case in my package (the default test case created by modulemaker) attempts to create a new Device::CableModem::SURFboard. Unless you actually have a Motorola SURFboard connected, the new method will fail. It tests fine for me. I guess I just didn't expect that anyone without a cable modem (the CPAN automated testers) to also try installing and testing (my bad).

The first question I have is why I didn't receive any notice of the test fails from CPAN? The failure results look like they were emailed somewhere (that should have included me) but I've re-scanned my mail logs but there doesn't appear to be any evidence of the messages being filtered.

My second question is what to do about the test failure. I could change my package in a way to allow the new() method to succeed, modem or not, or I could modify the test case to pass whether the object is created or not. Neither option makes any more sense then simply removing the test case in the first place.

My last question is how to update CPAN with the correction. I assume that the way to do this is bump up the version number and upload again?

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

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.