Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

What are some good testing references?

by trammell (Priest)
on Jul 15, 2004 at 20:17 UTC ( #374813=categorized question: print w/replies, xml ) Need Help??
Contributed by trammell on Jul 15, 2004 at 20:17 UTC
Q&A  > testing


What are some good links to Perl-specific testing documents? How about books or other offline documents? Why do you think these references are useful?

Answer: What are some good testing references?
contributed by trammell

The standard Test::Tutorial is a must-read.

The POD in Test::Simple and Test::More is well-written.

And the following articles by chromatic are excellent: Testing, Test::MockObject

Answer: What are some good testing references?
contributed by pernod

In addition to trammell's suggestions above, for specification-based testing, tmoertel's Test::LectroTest is an excellent tool.

Test::LectroTest allows you to autmatically generate data-sets that tests larger areas of the problem space with ease. Read the module author's tutorial on the subject for a nice primer.

Answer: What are some good testing references?
contributed by tirwhan

For books, see

Also be sure to check out
Answer: What are some good testing references?
contributed by clp

Effective Perl Programming, 2d ed ISBN 9780321496942, published in 2010, has a chapter on testing. It is not a tutorial on basic test techniques. It includes several multi-page examples; and covers topics such as mock objects, test-driven development, and a continuous build system.

Perl Medic, Transforming Legacy Code ISBN 9780201795264 from 2004, also has a chapter on testing. It provides short introductions to several Test:: modules; and a detailed description of how to build real test code with a well-written 15-page example.

Please (register and) log in if you wish to add an answer

  • 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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (10)
    As of 2018-07-16 15:00 GMT
    Find Nodes?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

      Results (342 votes). Check out past polls.