DEV Community

Discussion on: Me: "I tested and it works, why do I have to write tests?"

Collapse
 
moopet profile image
Ben Sinclair

I think the simplest way of explaining it to someone would be something like,

"once you're working on something else, and a new recruit takes over maintenance of this code, are you confident that they won't break it by making what looks to them like a simple change? If that happens, everyone will blame your code..."

Collapse
 
briwa profile image
briwa • Edited

True that. Same goes when you leave the company, without tests (and also docs), it would be hard to maintain the code to stay stable.