Hi, I know there's a lot of stuff on TDD and i'm trying to pick up the practice too. But i wonder is it a good idea to to TDD your bug fix too?
I was thinking along the lines of find the bug and narrow it down. Write unit test to ensure that it will now pass whatever problem that it previously caused. Write more unit test for other breakable conditions. And finally write unit test to test for Integration test, as we don't have any unit test prior to this, so whenever i'm fixing a bug i'm always worried that i might accidentally break something.
- So is TDD suitable for debugging too?
- Or is there other method or resource/book that would be more useful for this purpose?
- I am more concerned for the Integration Test part as i've mentioned above. I'm looking for anything in LAMP/Axkit/Perl related method.
Thanks.