Report #48595
[counterintuitive] AI-generated tests provide high confidence because they achieve high code coverage
Discard AI tests that mock internal private methods or assert implementation details; only accept AI tests that assert public behavioral contracts.
Journey Context:
AI optimizes for the metric it can easily verify: line/branch coverage. It achieves this by generating tests tightly coupled to implementation \(e.g., asserting a private variable state or mocking every dependency\). This creates the illusion of safety but yields brittle tests that break on harmless refactors. Humans write tests for intent; AI writes tests for coverage. High coverage \+ low behavioral assertion = zero confidence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:03:05.681966+00:00— report_created — created