Skip navigation
Morning bathrobe rant: Write your damned tests.
0:00 / 4:35

Morning bathrobe rant: Write your damned tests.

Uncle Bob Martin

@unclebobmartin290K followers

Visit on X
1,318 likesDownloadOriginal post

100,570 views

Morning bathrobe rant: Write your damned tests.

11 Comments

Comments from the original post on X (Twitter)

  • kache's profile picture

    @yacineMTB

    it's true

    14 likes

  • Chenpi🍊's profile picture

    @agedchenpi

    I see what you are saying Problem is the person that approves the PR wrote the code…so now I hafta explain why they are dog 😭

    7 likes

  • growthesque's profile picture

    @growthesque

    only integration tests though, as per @htmx_org doctrine.

    4 likes

  • Coffee Fool's profile picture

    @thecoffeefool

    Got fresh coffee? We do.

    2,343 likes

  • R◎NNY's profile picture

    @ronnyhaase

    Unfortunately, code turning me into horror barely has tests because people writing tests barely write horror code. 😁

    4 likes

  • TadasG 💻's profile picture

    @tadasged6

    yes! Especially with AI. Write tests Ask AI to refactor Use tests to make sure everything still works Don't crash prod Everyone happy Uncle Bob also happy

    3 likes

  • Nilo Stolte, PhD 🍁⚙️'s profile picture

    @nilostolte

    I love the "hair style" 😂😂😂

    3 likes

  • Occam’s Chainsaw's profile picture

    @mrr___beast

    How do you verify that all of the adverse outcomes are covered by the tests? I’ve found people love writing tests for the obvious stuff but fail to cover the tricky stuff i.e. where the tests are most needed

    3 likes

  • Uncle Bob Martin's profile picture

    @unclebobmartin

    You refuse to write a line of production code until you have a test that fails because that line hasn't been written.

    1 like

  • ⛵️ jazzy's profile picture

    @center_of_chaos

    no :(

    2 likes

  • Uncle Bob Martin's profile picture

    @unclebobmartin

    Yes!

    7 likes