Skip to content
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

Increase percentage accuracy in reports #612

Closed
pantosha opened this issue Jul 25, 2023 · 2 comments
Closed

Increase percentage accuracy in reports #612

pantosha opened this issue Jul 25, 2023 · 2 comments

Comments

@pantosha
Copy link

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
Copy link
Owner

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

@danielpalme
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants