Tuesday, April 08, 2008

Introducing TDD to an existing codebase

When you find a bug, prove it's a bug by writing failing unit tests for it, then fix the bug. Now you've got unit tests around pre-existing code. Magic!

No comments: