Migrate tests to xUnit v3 with Microsoft.Testing.Platform#5361
Closed
Migrate tests to xUnit v3 with Microsoft.Testing.Platform#5361
Conversation
Co-authored-by: mikaelweave <753437+mikaelweave@users.noreply.github.com>
…attributes Co-authored-by: mikaelweave <753437+mikaelweave@users.noreply.github.com>
Co-authored-by: mikaelweave <753437+mikaelweave@users.noreply.github.com>
Co-authored-by: mikaelweave <753437+mikaelweave@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update all tests to use Microsoft.Testing.Platform with built in retries
Migrate tests to xUnit v3 with Microsoft.Testing.Platform
Jan 30, 2026
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
@copilot You can see some errors from #file:91.txt during the build pipelines |
Contributor
Author
I don't have direct access to the Azure DevOps pipeline logs or the
This will help me identify and fix the build issues. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
… Assert.Skip Co-authored-by: mikaelweave <753437+mikaelweave@users.noreply.github.com>
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Co-Authored-By: Warp <agent@warp.dev>
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…interface - Updated test classes to replace ITestOutputHelper with Xunit.ITestOutputHelper for consistency. - Refactored test classes to implement the new IAsyncLifetime interface for async initialization and disposal. - Introduced compatibility shims for IAsyncLifetime and ITestOutputHelper to maintain backward compatibility with existing tests. - Added Skip and Skippable attributes to facilitate conditional test execution. - Ensured all test classes are aligned with the latest Xunit v3 standards.
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Description
Migrates test infrastructure from xUnit v2 to xUnit v3 with Microsoft.Testing.Platform (MTP) for modern test execution and built-in retry support.
Package changes:
xunit2.9.3 →xunit.v33.2.2xunit.assert,xunit.extensibility.core,xunit.runner.visualstudio,Microsoft.NET.Test.Sdk,Xunit.SkippableFactxunit.v3.extensibility.core,Microsoft.Testing.Extensions.RetryBuild configuration:
OutputType=Exe) for MTPUseMicrosoftTestingPlatformRunner=trueRetry mechanism:
RetryFact/RetryTheoryretained as markers; actual retries via MTP:dotnet test -- --retry-failed-tests 3Xunit.SkippableFact migration:
SkipCompatibility.csprovidingSkip.If()/Skip.IfNot()using xUnit v3'sAssert.Skip()[SkippableFact]→[Fact]Related issues
User request for Microsoft.Testing.Platform migration with built-in retry support.
Testing
Microsoft.Health.Extensions.Xunitbuilds successfully for net8.0/net9.0FHIR Team Checklist
Semver Change (docs)
Patch
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
microsofthealthoss.pkgs.visualstudio.com/usr/bin/dotnet dotnet restore --ignore-failed-sources(dns block)/usr/bin/dotnet dotnet build src/Microsoft.Health.Extensions.Xunit/Microsoft.Health.Extensions.Xunit.csproj --no-restore -p:TreatWarningsAsErrors=false(dns block)/usr/bin/dotnet dotnet build src/Microsoft.Health.Extensions.Xunit/Microsoft.Health.Extensions.Xunit.csproj --no-restore -p:TreatWarningsAsErrors=false -p:WarningsAsErrors=(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.