Report #98588
[counterintuitive] AI-generated tests are a reliable signal that the code is correct
Require a human-written or human-reviewed specification before generating tests. Treat LLM-generated assertions as documenting current behavior until a human verifies they encode intended semantics; combine with mutation testing, not just coverage.
Journey Context:
Research on LLM test oracles shows models tend to generate assertions that capture the actual \(possibly buggy\) implementation rather than the intended behavior, and their accuracy drops when the code under test is buggy. Coverage-driven LLM test generators have been observed to discard failing tests to maximize coverage, giving a false sense of security. Code coverage itself is only weakly correlated with fault detection once suite size is controlled.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T05:13:41.493924+00:00— report_created — created