-
Notifications
You must be signed in to change notification settings - Fork 872
Fix compilation errors for xUnit v3 migration #7607
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
Draft
Copilot
wants to merge
19
commits into
main
Choose a base branch
from
copilot/update-to-xunit-30
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
78dec7d
Migrate test infrastructure from xUnit v2 to xUnit v3
Copilot 3d22738
Fix xUnit v3 migration: IAsyncLifetime ValueTask, type conflicts, mis…
Copilot de66fb7
Fix XunitLoggerProvider v2/v3 ITestOutputHelper type mismatch with ad…
Copilot d3b5748
Remove reference to non-existent test/TestUtilities/TestUtilities.csp…
Copilot a2fa86f
Fix IDE0011, IDE0055, xUnit1006, CA1822 warnings treated as errors in CI
Copilot 314c565
Fix IDE0032 and CA1816 warnings in ProjectTemplates Infrastructure
Copilot 3b44bb1
Fix CS8602 nullable dereference warnings on Record.Exception() results
Copilot e5f259e
Fix NU1010 Windows build errors by adding empty-TF fallback for AspNe…
Copilot fff9efa
Address review feedback: ConditionalNet472 pattern, Assert.SkipUnless…
Copilot 17f28af
Fix S4144: deduplicate FunctionInvocation_RequireSpecific by delegati…
Copilot df4b7c5
Address review feedback: fix UseVSTestRunner conflict, move Condition…
Copilot 77d93e4
Restore xUnit1051 suppression with explanatory comment
Copilot bf1d599
Fix NU1010 by using literal net10.0 instead of $(LatestTargetFramewor…
Copilot 2b96c96
fix the Windows build
adamsitnik fe3a017
Replace OperatingSystem.Is* with RuntimeInformation.IsOSPlatform for …
Copilot 775f646
fix the Windows build
adamsitnik 03c1650
Fix SA1208/SA1210: sort using directives alphabetically with System.*…
Copilot 8a1169e
Fix S1128 (unnecessary using System) and FS0052 (struct copy in F# au…
Copilot 99b16b8
Apply suggestions from code review
adamsitnik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", | ||
| "diagnosticMessages": true, | ||
| "longRunningTestSeconds": 300, | ||
| "shadowCopy": false | ||
| "longRunningTestSeconds": 300 | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,20 @@ | ||
| <Project> | ||
| <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" /> | ||
|
|
||
| <PropertyGroup> | ||
| <XUnitCoreSettingsFile>$(MSBuildThisFileDirectory)\..\eng\xunit.runner.json</XUnitCoreSettingsFile> | ||
| <XUnitDesktopSettingsFile>$(MSBuildThisFileDirectory)\..\eng\xunit.runner.json</XUnitDesktopSettingsFile> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="AutoFixture.AutoMoq" /> | ||
| <PackageReference Include="autofixture" /> | ||
| <PackageReference Include="AwesomeAssertions" /> | ||
| <PackageReference Include="Moq.AutoMock" /> | ||
| <PackageReference Include="Moq" /> | ||
| <PackageReference Include="StrongNamer" Condition="'$(SignArtifacts)' == 'true' " /> | ||
| <PackageReference Include="Verify.Xunit" /> | ||
| <PackageReference Include="Verify.XunitV3" /> | ||
| <PackageReference Include="Xunit.Combinatorial" /> | ||
|
|
||
| <Content Include="$(MSBuildThisFileDirectory)\..\eng\xunit.runner.json" CopyToOutputDirectory="PreserveNewest" Visible="false" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.