Open MarcoRossignoli opened 4 years ago
This issue is stale because it has been open for 3 months with no activity.
[!TIP] use reportgenerator which supports minimum coverage thresholds
use dotnet-reportgenerator-globaltool to create a HTML report and a merged coverage file
reportgenerator -reports:"**/*.cobertura.xml" -targetdir:"artifacts\reports.cobertura" -reporttypes:"HtmlInline_AzurePipelines_Dark;Cobertura" --minimumCoverageThresholds:lineCoverage=80
Today with .net tool/msbuild you can specify a coverage threshold below which it fails the build.
https://github.com/tonerdo/coverlet/blob/master/Documentation/MSBuildIntegration.md#threshold
This is not supported on vstest collector integration
cc: @vagisha-nidhi