I mean testing the modules, not the authors ;--)

You might or might not know it, but modules released on CPAN are tested, and the results are reported on CPAN testers. The tests results are linked from the module page on search.cpan.org. Most of the tests are done automatically by a great group ofvolunteers.

There is one problem though: those volunteers are usually very up-to-date in their configurations, and understandably so. So you get a lot of results for various architectures and OSs, but mostly for recent versions of perl. To take a (completely random!) example, on August 31rst 2005 the XML::Twig result page shows 26 tests, 24 of those being on perl 5.8.4+.

I posted myself one of the 2 results for 5.6 BTW.

This leaves some big holes in the testing of the module, as for example Unicode processing changed quite a bit between 5.5, 5.6, 5.8.0 and 5.8.1+.

So if you are using modules, here is a simple thing you can do to help the authors: get Test::Reporter, install it, and run cpantest for the modules you have installed that pass the tests.

If you wonder what is the format of the package option, it is the "normalized" name of the distribution: Test-Reporter-1.27, XML-Twig-3.21... so cpantest -g pass -auto -p Test-Reporter-1.27 will report that indeed Test::Reporter passed the tests on your machine (it is even more important to report failures, but I assume that in most cases the author ends up being informed of those, through CPAN testers, rt.cpan.org or direct email).

This will help other users with the same version and architecture, as they can then check that the module runs for at least one person. It will also help the author of the module: when a failure is reported but there is a previous pass on the architecture, it eliminates a whole class of errors.

An other option is to use cpanplus (I don't), and to activate the test reporting option.

BTW, I test modules on quite a few versions of perl before a release. So I would have posted more results, if cpantestet had the option to report tests for other versions of perl than the default one. Saddly this is not available (yet?), and I don't like editing the emails it generates by hand, I don't trust my typing skills.


In reply to Help module authors by testing them on older versions of perl by mirod

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.