-
Notifications
You must be signed in to change notification settings - Fork 41
/
.testcoverage.yml
44 lines (37 loc) · 1.51 KB
/
.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
44
# (mandatory)
# Path to coverprofile file (output of `go test -coverprofile` command)
profile: coverage.out
# (optional)
# When specified reported file paths will not contain local prefix in the output
local-prefix: "github.com/bnb-chain/greenfield-storage-provider"
# Holds coverage thresholds percentages, values should be in range [0-100]
threshold:
# (optional; default 0)
# The minimum coverage that each file should have
file: 80
# (optional; default 0)
# The minimum coverage that each package should have
package: 80
# (optional; default 0)
# The minimum total coverage project should have
total: 80
# Holds regexp rules which will override thresholds for matched files or packages
override:
# Increase coverage threshold to 100% for `foo` package (default is 80, as configured above)
# - threshold: 100
# path: ^pkg/lib/foo$
# Holds regexp rules which will exclude matched files or packages from coverage statistics
exclude:
# Exclude files or packages matching their paths
paths:
- \.pb\.go$ # excludes all protobuf generated files
- \.pb\.gw\.go$ # excludes all protobuf generated files
- .*_mocks.go$ # excludes all mock generated files
- .*_mock.go$ # excludes all mock generated files
- e2e/.* # excludes e2e directory files
- modular/p2p/.*
- base/gfspclient/metadata.go
- modular/gater/metadata_handler.go
# NOTES:
# - symbol `/` in all path regexps will be replaced by
# current OS file path separator to properly work on Windows