3 ms·
> this idea that TDD is a panacea where no bugs ever survive didn't ever make sense to me in the first place. The idea only exists as a straw man for those try
by bluGill 9y ago
> this idea that TDD is a panacea where no bugs ever survive didn't ever make sense to me in the first place.
The idea only exists as a straw man for those trying to attack TDD.
TDD doesn't ensure there are no bugs. TDD ensures that everything you can think of that can go wrong does not, even as you think of new ways something could go wrong and fix that.
I was in one job a few years back without tests. We had a case where someone got a bug which was easy to fix, but they didn't realize their fix broke something else. Then we released and got the bug report which was fixed by reverting back to the original bug - we went through 3 rounds (over 6 years - a different contractor on the bug each time so who didn't realize what was going on) before someone realized what was happening and fixed both bugs.