Repository navigation
fix: restore in Debug before running the mutation tests - #1049
Merged
Merged
Conversation
The `Compile` target restores the solution for `Release`, where `aweXpect`
references the released `aweXpect.Core` package instead of the project.
Stryker resolves the project references during its analysis phase, before it
builds the solution in `Debug`, so it picked up both the package and the
project output and failed to compile the mutants with CS0433:
The type 'ExpectationGrammars' exists in both
'aweXpect.Core, Version=2.36.0.0' and 'aweXpect.Core, Version=255.255.255.255'
Restoring for `Debug` up front makes the analysis see the project references
only. This affects both `MutationTestsMain` and `MutationTestsCore`, which
share `ExecuteMutationTest`.
Verified with dotnet-stryker 5.0.0: fails before the change, completes after.
|
Contributor
Contributor
🚀 Benchmark ResultsDetails
|
Contributor
👽 Mutation ResultsaweXpectDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0aweXpect.CoreDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0 |
github-actions Bot
added a commit
that referenced
this pull request
Sep 12, 2026
…the mutation tests (#1049) by Valentin Breuß
github-actions Bot
added a commit
that referenced
this pull request
Sep 12, 2026
…the mutation tests (#1049) by Valentin Breuß
This was referenced Oct 12, 2026
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.



The
Compiletarget restores the solution forRelease, whereaweXpectreferences the releasedaweXpect.Corepackage instead of the project. Stryker resolves the project references during its analysis phase, before it builds the solution inDebug, so it picked up both the package and the project output and failed to compile the mutants with CS0433:Restoring for
Debugup front makes the analysis see the project references only. This affects bothMutationTestsMainandMutationTestsCore, which shareExecuteMutationTest.