Closed
Description
Installed product versions
- Visual Studio: 2019 Enterprise
- This extension: 1.1.11
- xunit 2.4.1
- xunit runner 2.4.3
- .dotnet core 3+
Description
With the extension enabled, trying to run a single test results in the test being run, and then all tests being run.
Steps to recreate
- Create any new dotnet core project
- add a dotnet core test library using xunit dotnetcore template
- create a Test1 and Test2 fact
- Set Test2 to Assert.IsTrue(false) to force a failure
- Run only Test1
Current behavior
1 test passed ... then 1 Failed and 1 Passed.
Expected behavior
1 test passed.
Side Notes
This is particularly troublesome for larger test libraries and integration tests in particular.
I spent some time troubleshooting xunit and then visual studio settings before I found this. Disabling things like "discover tests in realtime" (options > test > general) does not fix this.
Pics to help: Note I did not run the second test
And yet both ran