Skip to content

Commit 86d8aa0

Browse files
committed
Integrate CodeCov
1 parent 948ee38 commit 86d8aa0

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

codecov.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
codecov:
2+
# Require CI to pass to show coverage, default yes
3+
require_ci_to_pass: yes
4+
notify:
5+
# Codecov should wait for all CI statuses to complete, default yes
6+
wait_for_ci: yes
7+
8+
coverage:
9+
# Coverage precision range 0-5, default 2
10+
precision: 2
11+
12+
# Direction to round the coverage value - up, down, nearest, default down
13+
round: nearest
14+
15+
# Value range for red...green, default 70...100
16+
range: "70...90"
17+
18+
status:
19+
# Overall project coverage, compare against pull request base
20+
project:
21+
default:
22+
# The required coverage value
23+
target: 50%
24+
25+
# The leniency in hitting the target. Allow coverage to drop by X%
26+
threshold: 5%
27+
28+
# Only measure lines adjusted in the pull request or single commit, if the commit in not in the pr
29+
patch:
30+
default:
31+
# The required coverage value
32+
target: 85%
33+
34+
# Allow coverage to drop by X%
35+
threshold: 50%
36+
changes: no
37+
38+
comment:
39+
# Pull request Codecov comment format.
40+
# diff: coverage diff of the pull request
41+
# files: a list of files impacted by the pull request (coverage changes, file is new or removed)
42+
layout: "diff, files"
43+
44+
# Update Codecov comment, if exists. Otherwise post new
45+
behavior: default
46+
47+
# If true, only post the Codecov comment if coverage changes
48+
require_changes: false

0 commit comments

Comments
 (0)