---
title: "Meaning & Key Takeaway of: But I can write my tests later\", you say…"
description: "\"“But I can write my tests later\", you say. No, you can't. Not really. Oh, you can write some tests later. You can even approach high coverage later if ..."
image: "https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg"
---

#  But I can write my tests later", you say. No, you can't…

![“But I can write my tests later&quot;, you say. No, you can't. Not really. Oh, you can write some tests later. You can even approach high coverage later if you are careful to measure it. But the tests you write after the fact are defense. Tests you write first are offense. After-the-fact tests are…” quote by Robert C Martin](https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg)   [Download](https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg) [Open image](https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg)

> ““But I can write my tests later", you say. No, you can't. Not really. Oh, you can write some tests later. You can even approach high coverage later if you are careful to measure it. But the tests you write after the fact are defense. Tests you write first are offense. After-the-fact tests are written by someone who is already vested in the code and already knows how the problem was solved. There's just no way those tests can be anywhere near as incisive as tests written first.””

[Robert C Martin](https://sms4smile.com/quotes/author/robert-c-martin-2/)

## About This Quote

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

Writing tests before code creates proactive, precise checks; post‑hoc tests are reactive and less effective.

**In simple terms:** First‑write tests are stronger than later ones.

Key Takeaway

Write tests first.

Themes

software engineering testing quality assurance

Mood

cautious analytical

Type

advice technical

When to use this quote

- code reviews
- continuous integration
- pair programming
- refactoring

Key Concepts

test‑driven development defensive programming

Questions to Reflect On

- How can you ensure test coverage early?
- What risks arise from retroactive testing?

A Different Perspective

Later tests may miss hidden assumptions.

★ ★ ★ ★ ★   No ratings yet

[Tests Later](https://sms4smile.com/quotes/about/tests-later-3695106/) [Tests Write](https://sms4smile.com/quotes/about/tests-write-3695105/) [Tests Written](https://sms4smile.com/quotes/about/tests-written-875315/) [Write Fact](https://sms4smile.com/quotes/about/write-fact-3695107/) [Write Tests](https://sms4smile.com/quotes/about/write-tests-3151161/)

## Related quotes

> [The stories on standardized tests don't have one author, therefore they can never authentically be in the first person. Imagine that! Everywhere, there are…](https://sms4smile.com/quotes/alejandro-zambra/the-stories-on-standardized-tests-don-t-have-one-author-therefore/)

[Alejandro Zambra](https://sms4smile.com/quotes/author/alejandro-zambra/)

> [Growing up, all I did was write about the fact that I'm from where I'm from. I was a big champion of where I…](https://sms4smile.com/quotes/justin-vernon/growing-up-all-i-did-was-write-about-the-fact-that-i-m-from-where-i-m/)

[Justin Vernon](https://sms4smile.com/quotes/author/justin-vernon/)

> [“After prototyping, start again with TDD instead of trying to go back, and write tests for the prototype. Even”](https://sms4smile.com/quotes/kevin-harvey/after-prototyping-start-again-with-tdd-instead-of-trying-to-go-back/)

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

> [“Write the tests first, or second, or third. But write the darned tests.”](https://sms4smile.com/quotes/russ-olsen/write-the-tests-first-or-second-or-third-but-write-the-darned-tests/)

[Russ Olsen](https://sms4smile.com/quotes/author/russ-olsen/)

> [“Most programmers write too many tests.”](https://sms4smile.com/quotes/anonymous/most-programmers-write-too-many-tests/)

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

## More by Robert C Martin

> [“Professionals speak truth to power. Professionals have the courage to say no to their managers. How do you say no to your boss? After…](https://sms4smile.com/quotes/robert-c-martin-2/professionals-speak-truth-to-power-professionals-have-the-courage-to/)

[Robert C Martin](https://sms4smile.com/quotes/author/robert-c-martin-2/)

> [“Software is like a science. We show correctness by failing to prove incorrectness, despite our best efforts.”](https://sms4smile.com/quotes/robert-c-martin-2/software-is-like-a-science-we-show-correctness-by-failing-to-prove/)

[Robert C Martin](https://sms4smile.com/quotes/author/robert-c-martin-2/)

> [“Professionals speak truth to power. Professionals have the courage to say no to their managers. How do you say no to your boss? After…](https://sms4smile.com/quotes/robert-c-martin-2/professionals-speak-truth-to-power-professionals-have-the-courage-to-2/)

[Robert C Martin](https://sms4smile.com/quotes/author/robert-c-martin-2/)

[Explore all 4 Robert C Martin quotes ](https://sms4smile.com/quotes/author/robert-c-martin-2/)

## More Tests Written quotes

> [The stories on standardized tests don't have one author, therefore they can never authentically be in the first person. Imagine that! Everywhere, there are…](https://sms4smile.com/quotes/alejandro-zambra/the-stories-on-standardized-tests-don-t-have-one-author-therefore/)

[Alejandro Zambra](https://sms4smile.com/quotes/author/alejandro-zambra/)

[Browse all 2 Tests Written quotes ](https://sms4smile.com/quotes/about/tests-written-875315/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“But I can write my tests later\", you say. No, you can't. Not really. Oh, you can write some tests later. You can even approach high coverage later if you are careful to measure it. But the tests you write after the fact are defense. Tests you write first are offense. After-the-fact tests are written by someone who is already vested in the code and already knows how the problem was solved. There's just no way those tests can be anywhere near as incisive as tests written first.”",
            "creator": {
                "@type": "Person",
                "name": "Robert C Martin"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/robert-c-martin-2/but-i-can-write-my-tests-later-you-say-no-you-can-t-not-really-oh-you/",
            "about": {
                "@type": "Thing",
                "name": "Tests Written"
            },
            "@id": "https://sms4smile.com/quotes/robert-c-martin-2/but-i-can-write-my-tests-later-you-say-no-you-can-t-not-really-oh-you/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg",
                "url": "https://sms4smile.com/quotes/i/2f0/robert-c-martin-2-73247_quote_but-i-can-write-my-tests-later-you-say-n_1214376.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“But I can write my tests later\", you say. No, you can't. Not really. Oh, you can write some tests later. You…” — Robert C Martin",
                "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": "Robert C Martin",
                    "item": "https://sms4smile.com/quotes/author/robert-c-martin-2/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“But I can write my tests...",
                    "item": "https://sms4smile.com/quotes/robert-c-martin-2/but-i-can-write-my-tests-later-you-say-no-you-can-t-not-really-oh-you/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/robert-c-martin-2/but-i-can-write-my-tests-later-you-say-no-you-can-t-not-really-oh-you/#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
            }
        }
    ]
}
```
