Add precision option for reported percentages #78
Labels
enhancement
New feature or request
Options
An issue related to the Action's parameters.
Summary
An issue related to creating the code coverage summary.
Milestone
Feature Request
Reported percentages are rounded to whole numbers which can lead to confusion if a percentage is rounded up to apparently meet a threshold but the package is reported as failing to meet it because the calculation uses the full floating point number. A precision option would allow users to choose how many decimal places they wish to see.
Expected Behaviour
Additional Context
Based on sample outputs different tools record metrics with different precision in the coverage file. The most common seems to be 4 decimal places, which translates to 2 decimal places for percentages. Consider rounding all values on reading to 4 decimal places or based on this setting.
Linked To
#68 Coverage percentage is wrong
The text was updated successfully, but these errors were encountered: