-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Migrate to xunit.v3 #13482
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
Open
Youssef1313
wants to merge
25
commits into
main
Choose a base branch
from
dev/ygerges/mtp
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.
Open
Migrate to xunit.v3 #13482
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
96d7f10
First step to xunit.v3
Youssef1313 b36d7d3
Remove xunit.abstraction usings
Youssef1313 ae152fa
Little progress
Youssef1313 692a543
xunit extensibility
Youssef1313 86b0608
Progress
Youssef1313 e264bd3
Adjustments
Youssef1313 fc99071
Update Directory.Build.targets
Youssef1313 2ad808e
Coverage
Youssef1313 8b91ef8
global.json
Youssef1313 3733ad0
missing conflict resolution
Youssef1313 1093d4a
Fix before/after test method assertion
Youssef1313 43bff62
Fix package ref
Youssef1313 e7b5a6b
Fix for discovery
Youssef1313 c1d1e24
await, to be more safe
Youssef1313 71f87ba
Changes from the other PR
Youssef1313 9770e30
Fix one failure
Youssef1313 ea6d613
Downgrade verify for now
Youssef1313 2a83682
Ensure s_runningTests is set early enough before it gets called and c…
Youssef1313 23628e9
Few fixes for the transition of .NET Framework to be executables
Youssef1313 411aae6
Additional fixes due to test order changes
Youssef1313 3b43198
Ensure LogAllEnvironmentVariables state isn't mutated
Youssef1313 497c085
Stabi
Youssef1313 1787a85
fix build error
Youssef1313 15f93d6
Update AspNetCompiler_Tests.cs
Youssef1313 a8981a3
Update RoslynCodeTaskFactory_Tests.cs
Youssef1313 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Configuration> | ||
| <DeterministicReport>True</DeterministicReport> | ||
| <IncludeTestAssembly>true</IncludeTestAssembly> | ||
| <ExcludeAssembliesWithoutSources>MissingAll</ExcludeAssembliesWithoutSources> | ||
| <CodeCoverage> | ||
| <ModulePaths> | ||
| <Exclude> | ||
| <ModulePath>.*doc\.dll$</ModulePath> | ||
| <ModulePath>.*customlogger\.dll$</ModulePath> | ||
| <ModulePath>.*invalidcustomcheck\.dll$</ModulePath> | ||
| <ModulePath>.*portabletask\.dll$</ModulePath> | ||
| <ModulePath>.*faultylogger\.dll$</ModulePath> | ||
| <ModulePath>.*customcheck\.dll$</ModulePath> | ||
| <ModulePath>.*customcheck2\.dll$</ModulePath> | ||
| <ModulePath>.*errorcustomcheck\.dll$</ModulePath> | ||
| </Exclude> | ||
| </ModulePaths> | ||
| <Sources> | ||
| <Exclude> | ||
| <Source>.*\.g\.cs$</Source> | ||
| <Source>.*\.sr\.cs$</Source> | ||
| </Exclude> | ||
| </Sources> | ||
| <CommunicationTimeout>120000</CommunicationTimeout> | ||
| <PipeClientsCount>1270</PipeClientsCount> | ||
| <UseVerifiableInstrumentation>False</UseVerifiableInstrumentation> | ||
| <EnableStaticNativeInstrumentation>True</EnableStaticNativeInstrumentation> | ||
| <EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation> | ||
| <EnableStaticManagedInstrumentation>False</EnableStaticManagedInstrumentation> | ||
| <EnableDynamicManagedInstrumentation>True</EnableDynamicManagedInstrumentation> | ||
| </CodeCoverage> | ||
| </Configuration> |
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Configuration> | ||
| <DeterministicReport>True</DeterministicReport> | ||
| <IncludeTestAssembly>true</IncludeTestAssembly> | ||
| <ExcludeAssembliesWithoutSources>MissingAll</ExcludeAssembliesWithoutSources> | ||
| <CodeCoverage> | ||
| <ModulePaths> | ||
| <Exclude> | ||
| <ModulePath>.*doc\.dll$</ModulePath> | ||
| <ModulePath>.*net472.*</ModulePath> | ||
| <ModulePath>.*microsoft\.build\.buildcheck\.unittests\.dll$</ModulePath> | ||
| <ModulePath>.*microsoft\.build\.tasks\.unittests\.dll$</ModulePath> | ||
| </Exclude> | ||
| <Include> | ||
| <ModulePath>.*microsoft\.build\.engine\.unittests\.dll$</ModulePath> | ||
| <ModulePath>.*microsoft\.build\.engine\.om\.unittests\.dll$</ModulePath> | ||
| <ModulePath>.*microsoft\.build\.framework\.dll$</ModulePath> | ||
| <ModulePath>.*microsoft\.build\.framework\.unittests\.dll$</ModulePath> | ||
| <ModulePath>.*microsoft\.build\.commandline\.unittests\.dll$</ModulePath> | ||
| <!-- <ModulePath>.*microsoft\.build\.tasks\.core\.dll$</ModulePath> --> | ||
| <!-- <ModulePath>.*microsoft\.build\.tasks\.unittests\.shared\.dll$</ModulePath> --> | ||
| <!-- <ModulePath>.*microsoft\.build\.utilities\.core\.dll$</ModulePath> --> | ||
| <!-- <ModulePath>.*microsoft\.build\.utilities\.unittests\.dll$</ModulePath> --> | ||
| <ModulePath>.*microsoft\.net\.stringtools\.dll$</ModulePath> | ||
| <ModulePath>.*microsoft\.net\.stringtools\.unittests\.dll$</ModulePath> | ||
| </Include> | ||
| </ModulePaths> | ||
| <Sources> | ||
| <Exclude> | ||
| <Source>.*\.g\.cs$</Source> | ||
| <Source>.*\.sr\.cs$</Source> | ||
| </Exclude> | ||
| </Sources> | ||
| <CommunicationTimeout>120000</CommunicationTimeout> | ||
| <PipeClientsCount>1270</PipeClientsCount> | ||
| <UseVerifiableInstrumentation>False</UseVerifiableInstrumentation> | ||
| <EnableStaticNativeInstrumentation>True</EnableStaticNativeInstrumentation> | ||
| <EnableDynamicNativeInstrumentation>False</EnableDynamicNativeInstrumentation> | ||
| <EnableStaticManagedInstrumentation>False</EnableStaticManagedInstrumentation> | ||
| <EnableDynamicManagedInstrumentation>True</EnableDynamicManagedInstrumentation> | ||
| </CodeCoverage> | ||
| </Configuration> |
This file was deleted.
Oops, something went wrong.
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
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
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
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 |
|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |
| using Microsoft.Build.Utilities; | ||
|
|
||
| using Xunit; | ||
| using Xunit.Abstractions; | ||
|
|
||
| #nullable disable | ||
|
|
||
|
|
||
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.
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.
For some unknown reason, sometimes the
DebugDumpPathdirectory isn't there on disk, and thenGetFilesthrows an exception if the directory doesn't exist.Maybe there is some other previous test that deletes
DebugDumpPathor something. Anyways, it should be safe to keep this change. It just means that future refactoring for how tests work is ideal to avoid this kind of cross-test dependency issues.