I Tracked Every Time My Code Broke in Production. Half of It Was My Own Tests.
by•
Every production incident over three months. Twelve total. Six of them traced back to the same thing. Not the code.
The tests.
The tests were passing when they should have failed. Assertions that checked the wrong thing. Mocks that returned values the real system never would. A test suite that gave me confidence in code that was already broken.
I had been treating green as proof. Green was just a color.
Now I revert every fix before I trust the test. If it passes without the fix, it is decoration. It caught three more in the first week.
How many of your passing tests would still pass if the feature was deleted?
1 view
p/tulu
p/runevr
p/raycast
p/google-cloud-platform
p/producthunt
p/visitors
p/dots-7
p/many-displays
p/lingodotdev
p/clocknext
p/murror
p/reso
p/findergit
p/jot-2-0
p/interview-coach-3
p/kodlo
p/ai-context-flow
p/lancetta
Replies
Be the first to reply
Have a question or a thought to share? Add a comment above to start the conversation.