I have a very simple question. Is there any real consensus in the Perl community with respect to how unit testing ought to be done? That is to say, does anyone agree which library frameworks are the best to use? The panoply of choices is perplexing to me, but perhaps that is part of Perl's culture.

Java has jUnit, and that's what everybody uses. Perl, on the other hand, proffers a variety of choices. Historically, I've used Test::Unit and Test::SimpleUnit, and fiddled a bit with Test::More. Which module is the most powerful? Which module has the most buy-in from the community at large? Which module, were I to use it, would cause the least scoffing from those in the know when it comes to unit testing Perl code? The fact that there is no well accepted standard is quite discouraging. Said lack makes it very difficult to do integration testing across modules, unless you could at least get everyone to agree to a common harness.

So, what's the answer to this madness? Is there a simple one, or is my perplexity the natural consequence of the current state of affairs? Even if there is a standard way of doing this stuff, why is it not obvious what it is?


In reply to Unit Testing in Perl by skyknight

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.