New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Calculating total coverage for whole solution #1569
Comments
Hi, we use reportgenerator which merges coverage files and also allows to filter classes, assemblies and source files. This tool also allows to define thresholds as well e.g. -- see also coverlet CI: ReportGenerator minimumCoverageThresholds settings Note (
|
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?
The text was updated successfully, but these errors were encountered: