Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mdxi (4658)

mdxi
  (email not shown publicly)
http://mdxi.collapsar.net/

Journal of mdxi (4658)

Friday October 01, 2004
10:00 AM

Tests Are Fun

[ #21139 ]

Last week I set myself the goal of getting my rewrite ofYAML::ConfigFile (since renamed Config::YAML to fit with all the otherConfig modules) out the door by the end of the month. Well, I'm gonnabe about 12 hours late, but that's still pretty good.

This is the first thing I've written that's being coded at the sametime as its tests. I have to say, it's actually pretty neat. Not onlydoes it assure you that your logic is working properly, but it keepsyou from having to either write throwaway test scripts (which probablywon't test most cases), or try to use the unfinished code in a realscript, or get everything written only to find out it doesn't work andthen have to do it all over again.

Also, writing the little one-line test cases is kinda fun, as iswatching them count by when run. Whee!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.