Skip to content

test: kill surviving mutants and pin Patchwork - #28

Merged
ogorzalka merged 2 commits into
mainfrom
test/mutants
Nov 27, 2026
Merged

ogorzalka merged 2 commits into
mainfrom
test/mutants

Conversation

@ogorzalka

@ogorzalka ogorzalka commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

The line coverage was 99.7 % but the true mutation score 78 %: the tests ran the code without noticing changes to it.

Mutation score, whole src/ (5052 mutants, timeouts counted as killed)

untested timeout tested score
before 1092 17 3943 78.38 %
after 256 12 4784 94.93 %
  • New tests in tests/Unit/Security (tokens, previews, CORS, front gate, public routes, revalidation, stored data) and tests/Unit/Behaviour (settings defaults, manifest, media, SEO, OpenAPI, doctor, commands). Existing tests are unchanged.
  • No change under src/, so no change to the HTTP contract, settings, hooks or commands.
  • antecedent/patchwork is pinned in require-dev to the commit of Return the delegated wrapper from dir_opendir() antecedent/patchwork#235, as in hornet and media.

Part of the remaining mutants cannot be seen from the suite (code checked in a separate process because it depends on constants, header() in the CLI) and part are equivalent.

Olivier Gorzalka added 2 commits November 27, 2026 23:55
The suite ran almost every line but did not notice many changes to it.
Add tests of observable behaviour: API tokens, previews, CORS, the front
gate, public REST routes, revalidation, then the shapes and messages a
client or an administrator reads. No change under src/.

antecedent/patchwork is pinned to the commit of antecedent/patchwork#235,
so that the mutation score is measured right.
@ogorzalka
ogorzalka merged commit cfaaf0d into main Nov 27, 2026
12 checks passed
@ogorzalka
ogorzalka deleted the test/mutants branch November 27, 2026 23:09
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