danielpalme / ReportGenerator

ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.
https://reportgenerator.io
Apache License 2.0
2.62k stars 283 forks source link

Increase percentage accuracy in reports #612

Closed pantosha closed 1 year ago

pantosha commented 1 year ago

Describe the bug In the current implementation, reports contain percentages rounded to tenths. For projects with >100000 lines it's a too low resolution. Is it possible to increase accuracy to hundreds/thousands?

To Reproduce The following input helps to reproduce your issue:

  1. Generate Html report
  2. Open report:

Actual: Line coverage, Branch coverage, Method coverage round to tenths

Expected: Line coverage, Branch coverage, Method coverage round to thousands

danielpalme commented 1 year ago

Will consider this in the next release. Maybe I'll implement this as an option, so that you can customize the accuracy.

danielpalme commented 1 year ago

Starting with version 5.1.24 you can now set the accuracy with a new setting

Just add the following command line parameter: settings:maximumDecimalPlacesForCoverageQuotas=3