ci: add Stryker.NET mutation testing workflow#312
Open
maximn wants to merge 1 commit into
Open
Conversation
Mutation testing proves the test assertions actually catch regressions, complementing the existing line-coverage badge. Adds a standalone weekly (plus on-demand) workflow that never gates PRs. - Pin dotnet-stryker 4.14.2 as a local tool (.config/dotnet-tools.json) - Add stryker-config.json: mutate core GoogleMapsApi only on net10.0, perTest coverage, break threshold at 40 (baseline ~46%) - Add mutation.yml: weekly Monday 07:00 UTC + workflow_dispatch, publishes the score to the job summary and uploads the HTML report artifact - Ignore StrykerOutput/; document local usage in .agents/testing.md
🔬 TestGlance✅ 212 passed across 1 job — 100.0% · ⏱️ 1.9s
🟡 build — details✅ 212 passed vs
Updated 2026-06-17T07:15:30.629Z |
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.
Summary
Adds optional Stryker.NET mutation testing as a standalone weekly (plus on-demand) CI job that never gates PRs, complementing the existing line-coverage badge by proving the test assertions actually catch regressions.
Related issue
n/a
Changes
dotnet-stryker4.14.2 as a local tool in.config/dotnet-tools.jsonfor reproducible runs.GoogleMapsApi.Test/stryker-config.json: mutate the coreGoogleMapsApilibrary only onnet10.0,perTestcoverage, with abreakthreshold of 40 (baseline ~46%)..github/workflows/mutation.yml: runs weekly (Monday 07:00 UTC) and onworkflow_dispatch, publishes the score to the job summary and uploads the HTML report as themutation-reportartifact (no secrets needed).StrykerOutput/and document local usage in.agents/testing.md/.agents/build-release-ci.md.Test plan
dotnet tool restorethenVCR_MODE=replay dotnet strykerlocally: it built, mutated the core library, ran the offline cassette-replay suite against each mutant, and producedStrykerOutput/<ts>/reports/mutation-report.{html,md}(baseline score 46.24%), confirming the config and workflow report/artifact paths.breakgate works: a placeholder threshold of 60 correctly failed the run, so it was calibrated to 40.Checklist
dotnet formathas been run.dotnet testpasses locally (with a validGOOGLE_API_KEYfor integration tests).