forked from k8sgateway/k8sgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_coverage.yml
44 lines (38 loc) · 1.51 KB
/
test_coverage.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
# ref: https://github.com/vladopajic/go-test-coverage/blob/a5134457f681defa8eada436f1bcda10407f4f8b/.testcoverage.example.yml
# (mandatory)
# Path to coverprofile file (output of `go test -coverprofile` command)
profile: _output/cover.out
# Holds coverage thresholds percentages, values should be in range [0-100]
# We should strive to increase these percentages over time
threshold:
# (optional; default 0)
# The minimum coverage that each file should have
file: 50
# (optional; default 0)
# The minimum coverage that each package should have
package: 50
# (optional; default 0)
# The minimum total coverage project should have
total: 50
# Holds regexp rules which will override thresholds for matched files or packages
# using their paths.
#
# First rule from this list that matches file or package is going to apply
# new threshold to it. If project has multiple rules that match same path,
# override rules should be listed in order from specific to more general rules.
override:
# Calls to external library, which is tested
- threshold: 0
path: ^projects/gateway2/generate.go
# The only code at the top-level of the `projects/gateway2` package is code generation
- threshold: 0
path: ^projects/gateway2$
# Holds regexp rules which will exclude matched files or packages
# from coverage statistics
exclude:
# Exclude files or packages matching their paths
paths:
# Exclude the protobuf generated files (pb.go, pb.equal.go, pb.hash.go)
- \.pb\.go$
- \.pb\.hash\.go$
- \.pb\.equal\.go$