in reply to Re: RFC: Perl Testing -- How to Introduce to a team
in thread RFC: Perl Testing -- How to Introduce to a team

I think that the most important testing module that I learned was Test::Class. It is basically providing a OO structure to writing your tests.

While I am (unsurprisingly) quite fond of Test::Class, I'm not sure I'd recommend it as a first step if you've not done testing in Perl before. Especially if you're not particularly familiar with OO.

Start with Test::More and friends then, if you start finding you're wanting to factor out common testing functionality, take a look at Test::Class.

  • Comment on Re^2: RFC: Perl Testing -- How to Introduce to a team

Replies are listed 'Best First'.
Re^3: RFC: Perl Testing -- How to Introduce to a team
by Herkum (Parson) on Oct 20, 2006 at 19:12 UTC

    It does have a higher learning curve than just using Test::More. The problem with avoiding an OO oriented approach is that they will quickly run into issues once their testing needs become significantly detailed. Better that they tackle good practices right off the bat and avoid reenforcing procedural programming that they are used too.

      The problem with avoiding an OO oriented approach is that they will quickly run into issues once their testing needs become significantly detailed.

      Well - I tried very hard to make it easy to refactor from Test::More based test scripts to Test::Class based modules - so I'll be kinda sad if this turns out to be a problem to move to Test::Class once they hit the issues.

      Better that they tackle good practices right off the bat and avoid reenforcing procedural programming that they are used too.

      I certainly don't think Test::Class is a best practice. It's a way of testing, better suited to certain kinds of environment. I certainly don't use it for everything that I write. Adding complexity when it's not needed seems like a bad thing to me.