ReportGenerator icon indicating copy to clipboard operation
ReportGenerator copied to clipboard

minimumCoverageThresholds:lineCoverage not working

Open markusroessler opened this issue 1 year ago • 0 comments

Describe the bug When executing reportgenerator with --minimumCoverageThresholds:lineCoverage=100on a cobertura report with line-rate="0.1433", the exit code is 0 a no error is reported. --minimumCoverageThresholds:branchCoverage=100 and --minimumCoverageThresholds:methodCoverage=100 do report the coverage errors as expected Settings-Description

To Reproduce

  • Create a coverage.cobertura.xml report with line-rate below 1.0
  • Execute reportgenerator -reports:"**/TestResults/*/coverage.cobertura.xml" -reporttypes:Html --minimumCoverageThresholds:lineCoverage=100

Reportgenerator Version 5.2.1.0

markusroessler avatar Feb 21 '24 14:02 markusroessler