Stryker xunit.v2 Shim
Role: worker. Builds measurement scaffolding and does not modify the tests it
measures.
Why this exists
Stryker.NET (through at least 4.15/4.16) **cannot observe mutant kills through
xunit.v3**. xunit.v3 runs on the Microsoft Testing Platform (MTP), and Stryker's
per-test coverage/kill mapping doesn't work across it (stryker-net issues 3237,
3629, 3094). The run completes and the initial test pass even succeeds, so the
failure is silent — the only symptom is the score: near-zero, with almost
every mutant reported Survived (e.g. 0.13% — 3 killed / 7,685 survived). That
is the observation-failure signature, not a real result.
The fix is a shim: a second test project that recompiles the *same test source
files* under xunit.v2 (classic VSTest), which Stryker observes correctly. No test
is rewritten — the shim links the existing .cs files, so there is one source
of truth. Stryker is then run from the shim directory in project mode.