3 ms·
Bugs seek each other’s company. Bad code has many bugs. Therefore the best place to add tests is the code where bugs are found. It’s not quite the same though
by Joeri 9y ago
Bugs seek each other’s company. Bad code has many bugs. Therefore the best place to add tests is the code where bugs are found.
It’s not quite the same though as adding a test to verify a bugfix.
- jeremyjh 9y agoExactly and often times when I write tests for a bug fix, I'm exposed to thoughts of other cases that were also missing, and write tests for those too. Like everything to do with software testing, for it to be effective you have to use your brain and not blindly follow some prescription you read on the internet.