I Stopped Writing Tests and My Code Got Better
dev.to·8h·
Discuss: DEV
Flag this post

Yeah, I said it. Come at me.

Before you start typing that angry comment, hear me out. I’m not saying “don’t test.” I’m saying I stopped writing tests the way everyone tells you to.

The Problem Nobody Talks About

For years, I followed the gospel: Write tests first. Test everything. 100% coverage. TDD or bust.

My codebase had 3,247 tests. Coverage was 94%. CI took 23 minutes to run. I felt like a responsible adult developer.

Then I shipped a bug that wiped out $12k worth of data.

The tests? All green. ✅

What Actually Happened

The bug was simple: An edge case in our payment processing where users could submit the same transaction twice within 50ms. Race condition. Classic.

Why didn’t the tests catch it? Because I tested what I thought about, not what actually …

Similar Posts

Loading similar posts...