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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Adding Testing To A Conversion (Score:1)
For better or worse, I'm the group lead for a conversion to
There's no doubt that TDD/Unit testing is overwhelming at first glance. We've decided to take the incremental approach to tests.
Round 1: Just test the method/property signatures. If you expect X, but get Y and are supposed to throw and error/exception, test that. If you call method Foo and should throw an error if Bar is not set, test that. That's easy to follow without much confusion.
Round 2: Test code coverage only to see which methods/properties you havn't tested at all in the previous step. Don't obsess about the % number, just look for methods you haven't called.
Round 3: Test positive functionality. If you call Y and should get X back, write a test for it.
Round 4: When you fix a bug, write a test.
Round 5: When people are finally comfortable with it all, game on. Try to fill in the test coverage gaps.
It seems to be going well so far. I guess time will tell.
Reply to This
Re: (Score:1)