Repository navigation
build: move the tests to xunit 4 - #10
Merged
Merged
Conversation
xunit.v3 4.0.2 brings Microsoft.Testing.Platform 2, which no longer runs under dotnet test's VSTest mode on the .NET 10 SDK. global.json opts dotnet test into MTP and TestingPlatformDotnetTestSupport goes. CI and the README run the test executables directly, which MTP 2 does not change. CollectionBehavior.DisableTestParallelization is an error in 4.x, which is what failed Dependabot's #8. The specs keep running in parallel by naming the same thing in 4.x's terms: Parallelization(Mode = Collections). Tests 86/86; Specs 36 passed, 6 skipped, as on main.
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.
Moves Tests and Specs to
xunit.v34.0.2 andxunit.runner.visualstudio4.0.1, the same migration as bleedingdeacons/register#70.global.jsonnow sets"test": { "runner": "Microsoft.Testing.Platform" }, and both projects dropTestingPlatformDotnetTestSupport. MTP 2, which xunit 4 brings, no longer runs underdotnet test's VSTest mode on the .NET 10 SDK.Parallelism.csnow usesParallelization(Mode = ParallelMode.Collections).CollectionBehavior.DisableTestParallelizationis a compile error in 4.x, which is what failed Dependabot's chore(deps): Bump the dependencies group with 4 updates #8. The specs still run in parallel.Verified locally:
mainon xunit 3.2.2.dotnet test --projectworks, anddotnet format --verify-no-changesis clean.#8's xunit bump is covered here; its other updates are untouched.