Skip to content

Honouring Test Explorer Filter to determine tests for FCC coverage runs #267

Closed
@KeithWalters

Description

@KeithWalters

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

  1. Create a solution containing a project with code, and a Test project with more than one test, maybe with different Traits
  2. Build the solution
  3. Using Test Explorer, filter out 1 or more tests (e.g. using a Trait)
  4. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions