DEV Community

Discussion on: Everything That's Not Tested Will Break

Collapse
 
revskill10 profile image
Truong Hoang Dung

The actual reason for people bothering with testing is not the quality of code or design, but it's the ability to refactor the design. I mean ability to change existing system without breaking it.

If you don't need to refactor your code, test is not needed.

Collapse
 
stealthmusic profile image
Jan Wedel

Hi!

That might be your reason but it’s definitely not all people’s reason, I can assure you.
The improved design certainly also help maintainability but if you wouldn’t do testing and/or test driven design, you would first see your code in action in production. And you’ll find all the errors there which is very embarrassing for every professional Software Developer, at least that’s my point of view.