-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Migrate to xunit.v3 #10890
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
base: main
Are you sure you want to change the base?
Migrate to xunit.v3 #10890
Conversation
CI fails due to missing package in our feed. Started a mirror here |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Wpf seems to depend on https://github.com/dotnet/winforms/blob/main/src/Common/tests/TestUtilities/System.Private.Windows.Core.TestUtilities.csproj. So probably worth moving winforms first |
winforms moved now with dotnet/winforms#13540 |
8a4ded7
to
1a898fc
Compare
cc @bradwilson |
Hard to tell but this looks like a custom attribute might be throwing in a constructor somewhere...? |
I'd be curious to know what happens if you try using |
Updating helped. There are other failures that I'm investigating now. @bradwilson I'm curious whether you're planning to ship xunit.v3 3.x stable going to be released some time soon? |
Right now, our release plan is to allow third parties chances to find issues with breaking changes, we will give them a month to review the changes. The most recent build shipped 3 days ago. Assuming there are no further builds that need to be shipped to account for new breaking changes (and thus reset the clock), then a final release should be in the middle of July. |
@bradwilson Thanks for clarifying! |
Note to self: This is currently blocked as current version of xunit.stafact isn't compatible with xunit.v3 3.x. |
Now only needs fixing coverage. |
This reverts commit 2d66015.
@dipeshmsft Can I have a review here please? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the WPF project from xUnit v2 to xUnit v3, updating the test framework across multiple test projects and build configuration files.
- Updates all test project files to use xUnit v3 and configure them as executable projects
- Replaces xUnit v2 package references with xUnit v3 equivalents and updates version numbers
- Migrates test runner configuration from VSTest to Microsoft Testing Platform with new crash/hang dump extensions
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
WindowsBase.Tests.csproj | Adds OutputType property for executable test project |
SplashScreenTests.cs | Skips failing test and updates file encoding |
ComponentDispatcherTests.cs | Skips failing test |
System.Xaml.Tests.csproj | Adds OutputType property for executable test project |
System.Printing.Tests.csproj | Adds OutputType property for executable test project |
PresentationFramework.Tests.csproj | Adds OutputType property for executable test project |
PresentationFramework.Fluent.Tests.csproj | Adds OutputType property and test runner workaround |
PresentationCore.Tests.csproj | Adds OutputType property for executable test project |
Directory.Build.props | Removes coverlet collector package reference |
MultiTargeting.props | Replaces xUnit v2 packages with xUnit v3 package |
Versions.props | Updates package versions for xUnit v3 migration |
Testing.targets | Migrates from VSTest to Microsoft Testing Platform configuration |
CodeCoverage.runsettings | Removes VSTest-specific configuration file |
CodeCoverage.proj | Updates coverage report file patterns |
CodeCoverage.config | Adds new code coverage configuration for Microsoft Testing Platform |
dotnet.config | Adds configuration to specify Microsoft Testing Platform as test runner |
Directory.Build.props | Sets XUnitV3 as the test runner name |
Comments suppressed due to low confidence (2)
eng/Versions.props:89
- The XUnitStaFactPackageVersion 3.0.13 may not be a valid version. The package xunit.stafact typically follows semantic versioning, and version 3.0.13 appears to be significantly higher than expected release versions. Please verify this version exists in the package repository.
<XUnitStaFactPackageVersion>3.0.13</XUnitStaFactPackageVersion>
eng/Versions.props:98
- The VerifyXunitV3Version 30.1.0 appears to be an unusually high version number. Verify.Xunit packages typically use lower version numbers. Please confirm this version exists in the package repository.
<VerifyXunitV3Version>30.1.0</VerifyXunitV3Version>
TODO: