Repository navigation
test: kill surviving mutants and pin Patchwork - #28
Merged
Merged
Conversation
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.
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.
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)tests/Unit/Security(tokens, previews, CORS, front gate, public routes, revalidation, stored data) andtests/Unit/Behaviour(settings defaults, manifest, media, SEO, OpenAPI, doctor, commands). Existing tests are unchanged.src/, so no change to the HTTP contract, settings, hooks or commands.antecedent/patchworkis pinned inrequire-devto the commit of Return the delegated wrapper fromdir_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.