Repository navigation
docs(openspec): plan #2162 mutation cleanup of 18 test files - #2979
Merged
Merged
Conversation
4 tasks
This was referenced Nov 1, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 1, 2026
The plan for #2162 was wrong in places. This change corrects it in place. It changes no code and no test. - The plan now measures each of the 17 test files with the two-run mutmut method of the issue. It deletes a file only if the file kills no mutant of its own. - A guard test is never deleted. A file with a guard test moves that test to a covering file first. A new check in the last group fails if a moved test is missing. - The probe for `PYTEST_ADDOPTS` is a plain pytest call, because `devops ci test` does not pass the variable on. The plan says why. The evaluation of the plan pull request #2979 found these defects. Plans #2162
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plans #2162
This change plans the mutation testing of 18 review and scanner test files that cover no unique source line. The coverage audit of 2026-10-24 found these files overlap 84-100% with other test files. Line coverage alone cannot prove redundancy. Mutation testing determines whether each file kills a mutant the rest of the suite leaves alive. A file that kills no such mutant is deleted or merged. The plan records the mutants each file kills and the mutants that survive without it. No contract, invariant, or security-guard test is deleted. CI passes and coverage stays the same or rises.
Change:
openspec/changes/2162-mutation-runs-decide-which-of-the/