Testing

Matts on 2003-04-10T07:00:37

Giving a talk on Testing (mostly a repeat of Schwern+Chromatic's Test::Tutorial) this afternoon at work. Should be fun, for various definitions of "fun".


Idioms

Dom2 on 2003-04-10T07:59:33

At work, we've sort of discovered testing, but it seems to be at a primitive level. It might be worth covering best practises when testing as well. For example, using is() instead of ok() when possible. Also, using File::Temp instead of hard coding pathnames in /tmp (a local favourite).

-Dom

Re:Idioms

petdance on 2003-04-10T13:14:14

My new current favorite: Use isa_ok on anything that returns an object. You get the undef checking and type checking in one handy routine.

This is exactly the sort of stuff I'm going to cover in my OSCON talk.

I have a different, more introductory version of the talk available online. Please excuse the extreme powerpointiness.