Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

First, a bit of background so you know where I'm coming from: I'm the original author of the new Test::Harness module, I'm heavily involved in the Perl-QA community, I teach people testing, I have several testing modules on the CPAN and have written and published the results of Test Survey Results. In short, I know this area very, very well, so I hope you'll understand that I don't say "don't use PerlUnit" out of complete ignorance.

PerlUnit was an interesting project, but it's a dead one. Also, it does not integrate with the standard Perl testing tools. As a result, the wealth of powerful testing modules in Perl are pretty much not an option for you. Out of over 15,000 distributions on the CPAN, it appears that only 14 of them use PerlUnit (its front-end is named Test-Unit) and half of those are for one author on one set of related modules.

As for what people are actually using, I ran an analysis of the testing software used in CPAN modules and the top ten (out of 287) testing modules identified were:

Module Number of test programs Test::More 44461 Test 8937 Test::Exception 1379 Test::Simple 731 Test::Base 316 Test::Builder::Tester 193 Test::NoWarnings 174 Test::Differences 146 Test::MockObject 139 Test::Deep 127

Aside from Test, a legacy module used by older code, the standard Test::Harness based testing modules (Test::More, Test::Exception, Test::Differences, etc.) will be far more useful for you and new testing tools are coming out all of the time for it.

Of course, if the customer is requesting PerlUnit because they rely heavily on it, you may be stuck, but try to avoid it. If it's being considered because of its xUnit philosophy, I recommend you check out Test::Class. It's a great module and I use it all the time.

Cheers,
Ovid

New address of my CGI Course.


In reply to Re: Unit Testing by Ovid
in thread Unit Testing by ait

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found