Skip to content

Commit fdbe1b7

Browse files
committed
tests: fix codecov coverage showing as failing when it's within expected OS-dependent variability + reduce green threshold to 80%
Signed-off-by: Stephen L. <lrq3000@gmail.com>
1 parent aec1999 commit fdbe1b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
coverage:
2+
precision: 0 # 0 decimals of precision
3+
round: nearest # Round to nearest precision point
4+
range: "50...80" # red -> yellow -> green
5+
26
status:
37
project:
48
default:
59
# basic
610
target: auto
711
removed_code_behavior: fully_covered_patch # see: https://about.codecov.io/blog/new-codecov-setting-removed-code-behavior/
12+
threshold: 1% # allow 1% coverage variance, because depending on the run, different OSes results are uploaded for each run and some code is OS-specific, so this is it's within expected OS-dependent variability
13+
14+
patch:
15+
default:
16+
threshold: 1% # allow 1% coverage variance

0 commit comments

Comments
 (0)