正在加载视频...
视频加载失败
Morning bathrobe rant: Write your damned tests.
11 条评论

it's true

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 😭

only integration tests though, as per @htmx_org doctrine.

Got fresh coffee? We do.

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

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

I love the "hair style" 😂😂😂

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

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

no :(

Yes!
