---
title: "Meaning & Key Takeaway of: Code without tests is bad code. It…"
description: "\"“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. ..."
image: "https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg"
---

#  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](https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg)   [Download](https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg) [Open image](https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg)

> ““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](https://sms4smile.com/quotes/author/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

[Bad Code](https://sms4smile.com/quotes/about/bad-code-1167465/) [Code](https://sms4smile.com/quotes/about/code/) [Code Tests](https://sms4smile.com/quotes/about/code-tests-1167463/) [Getting better](https://sms4smile.com/quotes/about/getting-better/) [Legacy-code](https://sms4smile.com/quotes/about/legacy-code-105493/) [Programming](https://sms4smile.com/quotes/about/programming/) [Technology](https://sms4smile.com/quotes/about/technology/) [Tests](https://sms4smile.com/quotes/about/tests/) [Tests Bad](https://sms4smile.com/quotes/about/tests-bad-1167464/) [Well written](https://sms4smile.com/quotes/about/well-written/)

## Related quotes

> [“Legacy code. The phrase strikes disgust in the hearts of programmers. It conjures images of slogging through a murky swamp of tangled undergrowth with…](https://sms4smile.com/quotes/michael-feathers/legacy-code-the-phrase-strikes-disgust-in-the-hearts-of-programmers/)

[Michael Feathers](https://sms4smile.com/quotes/author/michael-feathers/)

> [“Don’t comment bad code—rewrite it.”](https://sms4smile.com/quotes/brian-w-kernighan/don-t-comment-bad-code-rewrite-it/)

[Brian W. Kernighan](https://sms4smile.com/quotes/author/brian-w-kernighan/)

> [“Jacob Kaplan-Moss, one of Django’s original developers, says “Code without tests is broken by design.”](https://sms4smile.com/quotes/nigel-george/jacob-kaplan-moss-one-of-django-s-original-developers-says-code/)

[Nigel George](https://sms4smile.com/quotes/author/nigel-george/)

> [“code without tests is a prototype at best.”](https://sms4smile.com/quotes/kevin-harvey/code-without-tests-is-a-prototype-at-best/)

[Kevin Harvey](https://sms4smile.com/quotes/author/kevin-harvey/)

> [“What makes us erratic, what makes us slow down, is the accidental difficulty. We call this difficulty “bad code”.”](https://sms4smile.com/quotes/anonymous/what-makes-us-erratic-what-makes-us-slow-down-is-the-accidental/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [Don't document bad code - rewrite it.](https://sms4smile.com/quotes/brian-kernighan/don-t-document-bad-code-rewrite-it/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [“To me, legacy code is simply code without tests.”](https://sms4smile.com/quotes/michael-c-feathers/to-me-legacy-code-is-simply-code-without-tests/)

[Michael C. Feathers](https://sms4smile.com/quotes/author/michael-c-feathers/)

> [I have enjoyed doing some films as they were well written like 'Andaz Apna Apna,' 'Hera Pheri' and 'Cheeni Kum.' These films were high…](https://sms4smile.com/quotes/paresh-rawal/i-have-enjoyed-doing-some-films-as-they-were-well-written-like-andaz/)

[Paresh Rawal](https://sms4smile.com/quotes/author/paresh-rawal/)

> [Anything I've ever read by John Irving has been really well written.](https://sms4smile.com/quotes/luke-bryan/anything-i-ve-ever-read-by-john-irving-has-been-really-well-written/)

[Luke Bryan](https://sms4smile.com/quotes/author/luke-bryan/)

> [Books are well written, or badly written. That is all.](https://sms4smile.com/quotes/oscar-wilde/books-are-well-written-or-badly-written-that-is-all/)

[Oscar Wilde](https://sms4smile.com/quotes/author/oscar-wilde/)

> [When there's no technical problems, if you did the right casting, and the scene is well written, the actor will give you a strong…](https://sms4smile.com/quotes/denis-villeneuve/when-there-s-no-technical-problems-if-you-did-the-right-casting-and/)

[Denis Villeneuve](https://sms4smile.com/quotes/author/denis-villeneuve/)

> [I like films that are well-written and concise and with not a lot of room for improvisation.](https://sms4smile.com/quotes/patrice-leconte/i-like-films-that-are-well-written-and-concise-and-with-not-a-lot-of/)

[Patrice Leconte](https://sms4smile.com/quotes/author/patrice-leconte/)

> [Those who find ugly meanings in beautiful things are corrupt without being charming. This is a fault. Those who find beautiful meanings in beautiful…](https://sms4smile.com/quotes/oscar-wilde/those-who-find-ugly-meanings-in-beautiful-things-are-corrupt-without-2/)

[Oscar Wilde](https://sms4smile.com/quotes/author/oscar-wilde/)

> [The script is your map of the world, isn't it? And if someone knows that if it's well-written, you get all of the beats,…](https://sms4smile.com/quotes/gary-oldman/the-script-is-your-map-of-the-world-isn-t-it-and-if-someone-knows/)

[Gary Oldman](https://sms4smile.com/quotes/author/gary-oldman/)

> [Anything well written with good language and clarity and honesty is worth doing. It comes out of the same tradition as Shakespeare.](https://sms4smile.com/quotes/michael-moriarty/anything-well-written-with-good-language-and-clarity-and-honesty-is/)

[Michael Moriarty](https://sms4smile.com/quotes/author/michael-moriarty/)

## More by Michael Feathers

> [“Legacy code. The phrase strikes disgust in the hearts of programmers. It conjures images of slogging through a murky swamp of tangled undergrowth with…](https://sms4smile.com/quotes/michael-feathers/legacy-code-the-phrase-strikes-disgust-in-the-hearts-of-programmers/)

[Michael Feathers](https://sms4smile.com/quotes/author/michael-feathers/)

> [“Tests that take too long to run end up not being run.”](https://sms4smile.com/quotes/michael-feathers/tests-that-take-too-long-to-run-end-up-not-being-run/)

[Michael Feathers](https://sms4smile.com/quotes/author/michael-feathers/)

> [“Programming is the art of doing one thing at a time”](https://sms4smile.com/quotes/michael-feathers/programming-is-the-art-of-doing-one-thing-at-a-time/)

[Michael Feathers](https://sms4smile.com/quotes/author/michael-feathers/)

[Explore all 4 Michael Feathers quotes ](https://sms4smile.com/quotes/author/michael-feathers/)

## More Code quotes

> [At the deepest level, all living things that have ever been looked at have the same DNA code. And many of the same genes.](https://sms4smile.com/quotes/richard-dawkins/at-the-deepest-level-all-living-things-that-have-ever-been-looked-at/)

[Richard Dawkins](https://sms4smile.com/quotes/author/richard-dawkins/)

> [It is no secret that I have read 'The Da Vinci Code' several times. I genuinely believe that 'The Da Vinci Code' and 'Angels…](https://sms4smile.com/quotes/ashwin-sanghi/it-is-no-secret-that-i-have-read-the-da-vinci-code-several-times-i/)

[Ashwin Sanghi](https://sms4smile.com/quotes/author/ashwin-sanghi/)

> [Programmers are always surrounded by complexity; we cannot avoid it… If our basic tool, the language in which we design and code our programs,…](https://sms4smile.com/quotes/tony-hoare/programmers-are-always-surrounded-by-complexity-we-cannot-avoid-it-if/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [One of my most productive days was throwing away 1,000 lines of code.](https://sms4smile.com/quotes/ken-thompson/one-of-my-most-productive-days-was-throwing-away-1-000-lines-of-code/)

[Ken Thompson](https://sms4smile.com/quotes/author/ken-thompson/)

> [Writing code means always having to say you're sorry.](https://sms4smile.com/quotes/paul-ford/writing-code-means-always-having-to-say-you-re-sorry/)

[Paul Ford](https://sms4smile.com/quotes/author/paul-ford/)

> [It would be a piece of ingenuousness to accuse the man of today of his lack of moral code. The accusation would leave him…](https://sms4smile.com/quotes/jose-ortega-y-gasset/it-would-be-a-piece-of-ingenuousness-to-accuse-the-man-of-today-of/)

[Jose Ortega y Gasset](https://sms4smile.com/quotes/author/jose-ortega-y-gasset/)

> [I loved 'Chicago Code;' I watched that a lot. It was great because it really captured the city - I'm from Chicago, too.](https://sms4smile.com/quotes/jessy-schram/i-loved-chicago-code-i-watched-that-a-lot-it-was-great-because-it/)

[Jessy Schram](https://sms4smile.com/quotes/author/jessy-schram/)

> [I kind of pride myself on coming onto things that are well-oiled machines and finding a way to bring what I bring and fit…](https://sms4smile.com/quotes/rob-lowe/i-kind-of-pride-myself-on-coming-onto-things-that-are-well-oiled/)

[Rob Lowe](https://sms4smile.com/quotes/author/rob-lowe/)

> [When we're done simplifying the tax code, getting the lobbyist carve outs our of the tax code, lowering our rates and letting people have…](https://sms4smile.com/quotes/paul-ryan/when-we-re-done-simplifying-the-tax-code-getting-the-lobbyist-carve/)

[Paul Ryan](https://sms4smile.com/quotes/author/paul-ryan/)

> [The tax code is 10 times the size of the Bible with none of the good news.](https://sms4smile.com/quotes/paul-ryan/the-tax-code-is-10-times-the-size-of-the-bible-with-none-of-the-good/)

[Paul Ryan](https://sms4smile.com/quotes/author/paul-ryan/)

> [The Cheney team had, for example, technological supremacy over the National Security Council staff. That is to say, they could read their e-mails. I…](https://sms4smile.com/quotes/lawrence-wilkerson/the-cheney-team-had-for-example-technological-supremacy-over-the/)

[Lawrence Wilkerson](https://sms4smile.com/quotes/author/lawrence-wilkerson/)

> [ \[T\]he tax code has been piling up, year after year, a symbol of everything gone wrong in America, of arrogant rulers and lost freedom,… ](https://sms4smile.com/quotes/dick-armey/t-he-tax-code-has-been-piling-up-year-after-year-a-symbol-of/)

[Dick Armey](https://sms4smile.com/quotes/author/dick-armey/)

> [In open source, you really have to be near the watershed to have an impact on the source code. Customers want to be near…](https://sms4smile.com/quotes/peter-fenton/in-open-source-you-really-have-to-be-near-the-watershed-to-have-an/)

[Peter Fenton](https://sms4smile.com/quotes/author/peter-fenton/)

> [We can use our art to become political, to become something you want to talk about. We make clothes, but we have the chance…](https://sms4smile.com/quotes/olivier-rousteing/we-can-use-our-art-to-become-political-to-become-something-you-want/)

[Olivier Rousteing](https://sms4smile.com/quotes/author/olivier-rousteing/)

> [Your zip code or your income level should not dictate your access to healthy drinking water.](https://sms4smile.com/quotes/alex-padilla/your-zip-code-or-your-income-level-should-not-dictate-your-access-to/)

[Alex Padilla](https://sms4smile.com/quotes/author/alex-padilla/)

[Browse all 1,662 Code quotes ](https://sms4smile.com/quotes/about/code/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“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.”",
            "creator": {
                "@type": "Person",
                "name": "Michael Feathers"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/michael-feathers/code-without-tests-is-bad-code-it-doesn-t-matter-how-well-written-it/",
            "about": {
                "@type": "Thing",
                "name": "Code"
            },
            "@id": "https://sms4smile.com/quotes/michael-feathers/code-without-tests-is-bad-code-it-doesn-t-matter-how-well-written-it/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg",
                "url": "https://sms4smile.com/quotes/i/8c7/michael-feathers-67849_code_code-without-tests-is-bad-code-it-doesn_2512165.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“Code without tests is bad code. It doesn't matter how well written it is; it doesn't matter how pretty or…” — Michael Feathers",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Michael Feathers",
                    "item": "https://sms4smile.com/quotes/author/michael-feathers/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“Code without tests is bad code....",
                    "item": "https://sms4smile.com/quotes/michael-feathers/code-without-tests-is-bad-code-it-doesn-t-matter-how-well-written-it/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/michael-feathers/code-without-tests-is-bad-code-it-doesn-t-matter-how-well-written-it/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
