Automated testing is something that we used to talk about at Merilus all the time, how great it is, how wonderful it would be… but we (at least I) never actually did anything about it. I decided to try a bit here at the new place, did a bit of research this morning and found some good links and stuff, then wrote my first real tests for some of the object oriented perl that I’m writing.
Probably the best one I found was this one at perldoc.com, which goes through Test::Simple and Test::More, probably the best place to start. It will show you the ease of which it’s done anyway.
After that check out some of these resources:
- Further adventures in testing (perlmonks)
- HTTP::WebTest (cpan)
- The Joy of Testing (perlmonks)
- test for web apps (the main node on permonks where I got the above links)
It’s neat, and fun, and pretty damn easy. Glad I finally got off my ass and did it.