Test Bugs
Test Bugs
●
Another good philosophy is to test bugs and new features.
●
Every time you find a bug, write a test for it.
●
Every time you add a new feature, write a test for it.
●
In the process, you might test a few other related things.
●
This is the simplest way to retrofit tests onto existing code.