Cedric round 2: Stryker configuration verification¶
All four configurations in tests/Forge.Approvals.Tests now explicitly set:
project:../../src/Forge.Approvals.<component>/Forge.Approvals.<component>.csprojtest-projects:["Forge.Approvals.Tests.csproj"]
Components: Core (stryker-config.json), Cli, Notify, Twilio. Mutation scope remains **/*.cs; high/low/break remain 80/60/60.
Observed local checks¶
From tests/Forge.Approvals.Tests, parsed each config with ConvertFrom-Json, resolved project with Resolve-Path, checked its absolute path against the test project's real ProjectReference entries, and checked the explicit test project exists. Output:
stryker-cli.json: project exists, referenced by explicit test project; break=60
stryker-config.json: project exists, referenced by explicit test project; break=60
stryker-notify.json: project exists, referenced by explicit test project; break=60
stryker-twilio.json: project exists, referenced by explicit test project; break=60
Also loaded installed Stryker 4.16.0 Stryker.CLI.dll by reflection and invoked Stryker.CLI.FileConfigReader.LoadConfig on each config. All four parsed successfully; returned Project values match the explicit relative paths and TestProjects contains Forge.Approvals.Tests.csproj. This invokes the actual Stryker parser without CLI startup or network calls.
Runtime limitation¶
dotnet stryker --help failed during Stryker CLI dependency construction:
NuGet.Configuration.NuGetConfigurationException: Failed to read NuGet.Config due to unauthorized access. Path: 'C:\Users\fives\AppData\Roaming\NuGet\NuGet.Config'.
Stack: Stryker.CLI.Program.Main -> dependency injection -> StrykerNugetFeedClient constructor -> NuGet configuration. This is not merely dotnet tool discovery; direct DLL invocation uses the same startup.
The installed command reader confirms --skip-version-check is a real no-value option, described as Skips check for newer version. | default: false. Future local invocation should include it, for example from the test directory:
dotnet stryker --config-file stryker-config.json --skip-version-check
That switch suppresses CLI update checks, but does not by itself prohibit Buildalyzer's restore fallback from contacting feeds. No mutation suite was run in this investigation under the no-network constraint. Configuration parsing and path/reference resolution are verified; successful runtime analysis and mutation results are unverified. The existing Clahadore log lacks diagnostic Buildalyzer output, so this investigation does not claim the original analyzer failure's root cause is proven. Direct invocation was also attempted:
dotnet "$env:USERPROFILE/.dotnet/tools/.store/dotnet-stryker/4.16.0/dotnet-stryker/4.16.0/tools/net8.0/any/Stryker.CLI.dll" --help --skip-version-check
Observed the same NuGetConfigurationException and UnauthorizedAccessException for the real user NuGet.Config before help could display. This confirms direct DLL invocation does not remove the startup blocker.