Report #95505
[counterintuitive] AI writes better tests than application code because tests are simpler and more formulaic
Never trust AI-generated tests for correctness; always use AI to generate tests for coverage/boilerplate, but write assertions manually or via property-based testing.
Journey Context:
Developers assume AI writes good tests because tests are formulaic. However, AI generates tests that pass against the \*current \(buggy\) implementation\*. It writes tests that are tautologically true for the code provided, giving high coverage but zero bug-finding power. Humans write tests to challenge their assumptions; AI writes tests to satisfy the prompt by matching the implementation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:53:01.563889+00:00— report_created — created