Coverage Configuration
Help with colors, rounding and precision
The default configuration for all repositories on Codecov is shown below. You can customize these values to fit your project's usage case.
coverage:
range: 60..80
round: down
precision: 2
Range
This value is used to customize the visible color range in Codecov. The first number represents the cutover from red to yellow, and the second represents the cutover from yellow to green. You can change the range of colors by adjusting this configuration.
For example, 50...75
would result in any coverage less than 50% having a red background. Between 50% and 75% you'd see a yellow bar and the color would change to green when coverage hit the 75% mark.
Rounding
Codecov will round coverage down to the precision point by default.
45.15313% would become 45.15%.
62.918777% would become 62.91%.
You may choose to round up
, down
, or nearest
.
Precision
You may choose to show more precision when viewing coverage reports on Codecov. Please select a number between 0
and 5
as the number of decimal places visible in the UI and all notifications.
Updated about 1 year ago