Description
Installed product versions
- Visual Studio: 2022 Professional
- This extension: 1.1.173
Description
I've been trying to find a way to reduce the number of tests that are run by FCC for its coverage reporting.
From what I can tell, the inclusion/exclusion available in FCC settings applies to what Code is instrumented, rather than what tests are run.
It would be quite helpful if the filtering that, as a user, I have applied in Test Explorer could be used (optionally) as the set of tests that FCC runs.
Steps to recreate
- Create a solution containing a project with code, and a Test project with more than one test, maybe with different Traits
- Build the solution
- Using Test Explorer, filter out 1 or more tests (e.g. using a Trait)
- Run all filtered tests in Test Explorer
Current behavior
All tests that are discovered across the whole solution are run by FCC in the background to establish coverage, including tests that were filtered out in Test Explorer.
Expected behavior
A setting/option to use the Test Explorer-configured filter to decide which tests to run for FCC purposes. When this setting is on, FCC runs coverage based only on that subset of tests.
Apologies in advance if this is a user education issue!