-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stryker.NET doesn't handle xUnit v3 properly #3117
Comments
We have quite some custom logic for dealing with specific test framework quirks, I suspect xunit v3 has added yet another layer of quirks. |
I predict a big one: it looks like a lot of VsTest design rules are violated here. |
First AnalysisStryker is not able to run xUnit 3 theories with inline data, that is Stryker detects them correctly but they are skipped by the runner The good news is that it does not look like a big issue. |
Update
Conclusion at this stageIt is likely that the xUnit V3 test runner executes the tests outside the VsTest host. But, Stryker requires its VsTest extension to run inside the test process. |
Describe the bug
When using xUnit v3, Stryker.NET produces warnings and can't perform proper mutations.
Reproduction steps
Checkout the xunit-v3 branch of the Serilog.Formatting.Log4Net project and run
dotnet tool restore && dotnet stryker
at the root of the repository.Expected behavior
Stryker.NET performs mutations and gives the same score (100%) as when using xUnit v2.
Dashboard with xUnit v2 (on the
main
branch): 100%Actual behaviour
Stryker.NET produces many warnings and eventually fails to perform the mutations.
Dashboard with xUnit v3: 3.09%
Desktop
Additional context
I have not enabled Microsoft Testing Platform support in xUnit.net v3 so I don't think this is related to #3094 although I'm not totally sure.
The text was updated successfully, but these errors were encountered: