in reply to Adding Tests to Mature Web App
As far as adding tests to an existing codebase, In addition to the book mentioned above, Perl Medic has a decent section.
When I've been in a similar situation, I've tried to add the simplest test(s) possible without changing the existing code at all, and then slowly re-factored the code to make it more test friendly (if needed) while keeping the original tests in place to verify nothing's been broken. Usually when I'm up against code without tests, I didn't write it, so you may be a step ahead in that regard.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding Tests to Mature Web App
by skx (Parson) on Aug 09, 2006 at 16:06 UTC |