-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Remove xunit.console and make VSTest the default runner both locally and in CI #37953
Comments
Tagging subscribers to this area: @safern, @ViktorHofer |
Blocked until 5.0 P8 SDK is released. |
I'm interested in this because it will make long running tests produce a coredump. |
@ViktorHofer is this something you'll be working on short term? I've been ignoring failures from long running tests on our arm64 rhel8 ci machine because having coredumps from |
Spent the last few days trying to get v6 & v5 building locally to look at SerialPort Libs and kept having issue where build seemed to break with open files errors. Traced it to xunit.console.exe is not terminating if run |
Blocked by microsoft/vstest#3595 |
Today we support two different test runners:
xunit.console
andVSTest
. The former is used when invoking the test targetdotnet msbuild /t:Test
and when running on CI. The latter is used when using VS Test Explorer, F5, thedotnet msbuild /t:Run
target or when invokingdotnet test
. To leverage the new crash dump / hang dump features that @davidfowl is driving in partnership with the VSTest team (cc @nohwnd), we should switch to VSTest and remove xunit.console entirely.This issue only tracks the libraries side for non-mobile and non-WASM configurations. Mobile and WASM use a different harness called xharness which is out-of-scope at the moment.
Revert 85bfbfc#diff-e7bc39410f7a119e7adb69b17006c452
Condition the RunTemplate and Test target logic on TargetsMobile and WASM:
dotnet test
in CI instead of RunTests.cmd/sh for non-mobile and non-wasm:runtime/src/libraries/sendtohelix.proj
Lines 69 to 70 in 132be64
Fix failing tests (ie Microsoft.Extensions.DependencyModel.Tests) and make sure that code coverage works.
Optional: use
dotnet publish
instead of theArchiveTests
target:cc @Anipik @ericstj @safern
The text was updated successfully, but these errors were encountered: