Skip to content

docs(openspec): plan #2162 mutation cleanup of 18 test files - #2979

Merged
dan-petty merged 1 commit into
mainfrom
test/2162-mutation-runs-decide-which-of-the
Nov 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/2162-mutation-runs-decide-which-of-the

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

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/

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 1, 2026 05:06
@dan-petty
dan-petty merged commit d252096 into main Nov 1, 2026
18 checks passed
@dan-petty
dan-petty deleted the test/2162-mutation-runs-decide-which-of-the branch November 1, 2026 10:17
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant