Skip to content

[Feature Request] Calculating total coverage for whole solution #1569

Open
@tlorenz9

Description

@tlorenz9

I have a solution with multiple projects and test projects which are contributing to the total coverage of the solution. Coverlet seems to check the coverage thresholds for every single test project, even when used with the MergeWith option.

My request would be to add an option to only check the last total coverage, because this will be the relevant one for the whole solution.

dotnet test --configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=\"json,opencover\" /p:ThresholdStat=total /p:Threshold=80 /p:CoverletOutput=../CoverageResults/ /p:MergeWith="../CoverageResults/coverage.json" /p:Exclude=\"someExclusions\" -m:1

So if we could have a "whole total" option for thresholdStat, this would be great. Or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    as-designedExpected behaviourduplicateThis issue or pull request already existsstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions