I have been doing some OO Perl programming and I was wondering: which is the best way to perform unit tests?
So far I have been using the Test::Simple module to perform tests, but it feels insufficient for what I want.
Can you point me to some nice modules for that?
I’d add my vote to picking up
Test::Morebefore going any further in Perl testing. The Perl testing community is fairly well united around the Test Anything Protocol, and you’ll want to play around withTest::Moreto understand how it works and how tools likeproveandTest::Harness::Archivecan help automate and distribute testing.If you want to just ‘jump right in’, I think
Test::Classprovides xTest facilities with a TAP backend. I haven’t used it at all (I’m aTest::Moreperson myself), but it’s very highly rated.