Morning bathrobe rant: Write your damned tests.
@unclebobmartin290K followers
100,570 views
11 Comments
Comments from the original post on X (Twitter)

@yacineMTB
it's true
14 likes

@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
only integration tests though, as per @htmx_org doctrine.
4 likes

@thecoffeefool
Got fresh coffee? We do.
2,343 likes

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

@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

@nilostolte
I love the "hair style" 😂😂😂
3 likes

@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

@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

@center_of_chaos
no :(
2 likes

@unclebobmartin
Yes!
7 likes
