Skip to content

Fine Code Coverage extension forcing all tests to run even when running a single test #27

Closed
@Pompeoar

Description

@Pompeoar

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

  1. Create any new dotnet core project
  2. add a dotnet core test library using xunit dotnetcore template
  3. create a Test1 and Test2 fact
  4. Set Test2 to Assert.IsTrue(false) to force a failure
  5. 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
image

And yet both ran

image

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions