CultLib/packages/cultmath/tests/CultMath.Tests/stryker-config.json
Meta Vens 6a2b42f650 Pin mtp test-runner for CultMath and document mutation testing
CultMath.Tests is on xunit.v3. Stryker's default vstest runner cannot
capture coverage against xunit.v3's test host and hangs retrying test
sessions indefinitely (observed: 2096 mutants queued, zero completed after
~9 minutes of retries). Stryker's Microsoft.Testing.Platform runner
(-t mtp, still preview) works correctly against xunit.v3 and completed the
same 1351-mutant run in ~4.5 minutes. Pin it in config so a plain
`dotnet stryker` works without a CLI flag.

Add docs/mutation-testing.md: how to run it, the --since form for a single
cut, the triage rules, a known coverage-capture caveat in the mtp runner
(confirmed by hand-mutation against static readonly fields), and the
packages still needing their own config.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 21:24:05 +02:00

14 lines
411 B
JSON

{
"stryker-config": {
"project": "CultMath.csproj",
"mutate": [
"**/packages/cultmath/src/CultMath/**/*.cs",
"!**/packages/cultmath/src/CultMath/Swizzles.g.cs",
"!**/packages/cultmath/src/CultMath/*.meta"
],
"mutation-level": "Standard",
"reporters": [ "progress", "html", "json" ],
"thresholds": { "high": 80, "low": 60, "break": 0 },
"test-runner": "mtp"
}
}