Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Awesome Test::Class tutorial series at Modern Perl Books.

by kyle (Abbot)
on Mar 27, 2009 at 15:09 UTC ( #753684=perlnews: print w/replies, xml ) Need Help??

I have learned greatly from the series of articles by Ovid posted at Modern Perl Books about Test::Class. If you're ready to take your testing to the next level, this is a great place to learn the ropes from someone who knows.

  1. Organizing Test Suites with Test::Class — A basic example, testing a "Person" class made with Moose.
  2. Reusing Test Code with Test::Class — Refactoring tests to avoid duplicating code.
  3. Making Your Testing Life Easier — Code to automatically discover your tests, vim aliases to ease testing, and more.
  4. Using Test Control Methods with Test::Class — Methods that run before and after tests similar to BEGIN and END blocks.
  5. Working with Test::Class Test Suites — Make your classes behave like xUnit classes, performance, and more.

I've been using what I've learned here in a new project recently, and I've been very happy with the results.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlnews [id://753684]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2023-03-31 18:43 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (76 votes). Check out past polls.