generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.testcoverage.yml
43 lines (36 loc) · 966 Bytes
/
.testcoverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# (optional; but recommended to set)
# When specified reported file paths will not contain local prefix in the output.
local-prefix: "github.com/cloudwego/eino"
# Holds coverage thresholds percentages, values should be in range [0-100].
threshold:
# (optional; default 0)
# Minimum overall project coverage percentage required.
total: 75
package: 30
# (optional; default 0)
# Minimum coverage percentage required for individual files.
file: 20
by-package:
threshold: 30
show-all: false
top-n: 5
bottom-n: 5
by-file:
threshold: 20
show-all: false
top-n: 5
bottom-n: 5
diff:
threshold: 80
show-all: true
new-code: true
modified-code: true
# Holds regexp rules which will exclude matched files or packages
# from coverage statistics.
exclude:
paths:
- "tests"
- "examples/"
- "mock/"
- "callbacks/interface.go"
- "utils/safe"