#111634No local check shows whether tests detect faults in the code they cover
Description
A passing test and line coverage do not show whether a test detects a fault in the code it executes. A test can execute a line and assert nothing about its result. This happens often in tests that coding agents write: they pass, but they assert little. Reviewers cannot see this in the diff.
Mutation testing shows it. It changes the code in small steps (mutants) and checks that at least one test fails for each mutant. The core has no way to run it for a change.
Proposal: a local suite runTests.sh -s infection that runs Infection for the change on the current branch. It mutates the changed lines below Classes/ and the lines that changed tests execute, and runs the related unit and functional tests against each mutant. It does not run in CI. AGENTS.md asks coding agents to run it after code or test changes and to report the mutation score.
Reviews 1
History 02
-
Gerrit Code Review pushed patch set 1 for main to change 98101 status
NewUnder Review 11/27/26, 10:11 -
Gerrit Code Review pushed patch set 2 for main to change 98101 11/27/26, 10:19