Skip to content

Code Coverage for Affected Projects only #12

@leonardochaia

Description

@leonardochaia

When testing only what's affected, the coverage report will show incorrect results.

For example, given this project structure:

  1. Project.Shared
  2. Project (.1)
  3. Project.Tests (depends on .2)
  4. Shared.Tests (depends on .1)

If .2 has changes, .3 will be affected so we will build and test .2 and .3, but there's no need to test .4 since .1 has not changed.
Hence, the coverage report will show a low coverage percentage for .1 since its test have not run

We should be able to filter down the coverage report to only include the resulting projects of dotnet-affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions