Repository navigation
docs(mutation-testing): record Stryker.NET test-case-filter keeps NoCoverage under perTest - #11078
Conversation
…overage under perTest Probe of Stryker.NET 5.0.0 on the dotnet-test-selection fixture: the filter applies in the initial coverage run, so a mutant reached only by excluded tests reports NoCoverage. The tool-test-restriction row now reads yes with version, probe date and recheck trigger. Refs: #9687 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Incremental security review of f32f98e. It covers the two files changed since cff34f3: the changelog fragment and What changed. The change is documentation only. It adds a "Running Stryker.NET on a test set" section that tells the audit skill how to run Stryker.NET on a restricted test set. The skill builds Checks.
No security findings. critical-findings: 0 |
|
claude-review reviewed Incremental review of the new "Running Stryker.NET on a test set" section and the updated stryker-net row. I read the section against critical-findings: 1 Findings not posted inline (their path, line or side is malformed):
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cff34f3577
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…filter The tool-test-restriction row read yes but named no mapping from test paths to the filter. A new section builds test-projects and test-case-filter from dotnet-test-selection.sh output, writes them into a copy of the Stryker config under .work/, and passes it with --config-file, leaving the user's config untouched. The row's Source now links the #test-case-filter-string section. Refs: #9687 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…riginal Writing the copy beside the user's config keeps every relative path in it resolving as before, whichever base Stryker.NET uses. Adds the cross-project filter caveat and a recheck trigger for the options the section relies on. Refs: #9687 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #9687
Summary
Records the Stryker.NET probe result in
plugins/mutation-testing/skills/audit/context/tool-test-restriction.md: withcoverage-analysisperTest,test-case-filterapplies in the initial coverage run, and a mutant reached only by excluded tests reports NoCoverage. The row's no-coverage column moves fromunknowntoyes, with the version (5.0.0), probe date (2026-10-29) and a recheck trigger. AuditSKILL.mdalready lets that column choose the tool's own restriction, so it needs no edit.Fix
yes, Stryker.NET 5.0.0, probe date, recheck trigger; the Option cell notes thattest-case-filteris a config-file key (5.0.0 has no CLI flag for it).Verification
Probe on Linux, .NET SDK 10.0.403, against a throwaway copy of
plugins/mutation-testing/scripts/fixtures/dotnet-test-selection(libraryShop, test projectsShop.TestsandShop.Specs). The copy was retargeted from net8.0 to net10.0 because the host has no .NET 8 runtime. Tool pinned in a local manifest inside the copy:dotnet new tool-manifest dotnet tool install dotnet-stryker --version 5.0.0 # per configuration, from the named directory: dotnet stryker -f stryker-config.json -O resultEach config file:
{ "stryker-config": { "coverage-analysis": "perTest", "test-case-filter": "<filter, omitted when none>", "test-projects": ["<projects>"], "reporters": ["json", "cleartext"], "verbosity": "debug" } }Mutants:
Adda + btoa - b(L5),Discountprice - (price * rate)toprice + (price * rate)(L7) andprice * ratetoprice / rate(L7).tests/Shop.Teststests/Shop.TestsFullyQualifiedName~CalculatorTestsExtraAdd)src/Shopsrc/ShopFullyQualifiedName~CalculatorTestsExtraAdd)src/ShopFullyQualifiedName~DiscountSpecsAdd)src/ShopAdd)coveredByin the JSON report lists only matching tests.Addis reached inShop.Specsonly byOtherSpecs; unfiltered it is Survived (covered by 1 test), filtered out it is NoCoverage (covered by 0).Discountmutants list tests from both projects; F's list onlyShop.Specstests). With both projects and a filter matching tests in one of them (D), the other project contributes no tests, and Stryker.NET logs a warning that the project "did not report any test" (suggesting a test adapter problem) while the run still exits 0.Done-when checks on the committed head:
awk -F'|' '/stryker-net/ {print $6}' plugins/mutation-testing/skills/audit/context/tool-test-restriction.mdprintsyes.grep -E 'stryker-net.*[0-9]+\.[0-9]+\.[0-9]+.*2026-[0-9]{2}-[0-9]{2}' ...prints the row.bash scripts/affected-tests.sh --runexits 0 (no suites selected for these files).bash scripts/check-affected.sh --testsexits 0: 14 passed, 2 skipped.Related
🤖 Generated with Claude Code