Growing a Test Suite: Test Bugs
Every time you find a bug, write a test for it
- Slowly grows your test suite
- Focuses your tests where the bugs are
- Bugs tend to congregate
- One test can catch several bugs
You're allowed to make a mistake once, but not twice
- The same kind of bugs tend to repeat themselves
- Your tests will catch them
Prev | toc | Next