Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I've been meaning to ask for a while now - what's the difference between PerlUnit and Test.pm/Test::More? Is it just a matter of how the tests are written, or is there something fundamentally better about PerlUnit?
    • PerlUnit is a port of Kent Beck's JUnit to Perl. JUnit and the like are very much tied to a strongly-OO approach of doing things. (I believe it grew out of Smalltalk.) They set up test harnesses with classes and all sorts of things that aren't necessarily Perlish, but really fit the Java model.

      Test.pm is a somewhat-old Perl module. I think Larry originally wrote it. Test::More is an expanded and enhanced version of that with more features, more tests, better diagnostics, and a really spectacular back

      • IME, PerlUnit requires more work and planning for a task that most people never do and have little experience in. Test::More is so simple that there's no excuse not to write tests.

        BTW: nice perl.com article on Test::MockObject!