Skip to content

Code without tests is bad code. It doesn't matter how well…

“Code without tests is bad code. It doesn't matter how well written it is; it doesn't matter how pretty or object-oriented or well-encapsulated it is. With tests, we can change the behavior of our code quickly and verifiably. Without them, we really don't know if our code is getting better or worse.” quote by Michael Feathers
Download Open image
““Code without tests is bad code. It doesn't matter how well written it is; it doesn't matter how pretty or object-oriented or well-encapsulated it is. With tests, we can change the behavior of our code quickly and verifiably. Without them, we really don't know if our code is getting better or worse.””

Michael Feathers

About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Tests validate code behavior, enabling safe, rapid changes and confidence in quality.

In simple terms: Tests ensure safe changes.

Key Takeaway

Write tests before refactoring.

Themes

software quality testing maintenance

Mood

analytical pragmatic

Type

technical instructive

When to use this quote

  • software development
  • code reviews
  • continuous integration

Key Concepts

unit testing refactoring safety

Questions to Reflect On

  • What risks remain without tests?
  • How can you improve test coverage?
A Different Perspective

Tests cannot catch all design flaws.

★ ★ ★ ★ ★ No ratings yet

More by Michael Feathers

Explore all 4 Michael Feathers quotes

More Code quotes

Browse all 1,662 Code quotes