Skip to content

Commit 798600b

Browse files
authored
Add Missing config file for code coverage (kserve#4581)
Signed-off-by: Andrews Arokiam <andrews.arokiam@ideas2it.com>
1 parent 60ac246 commit 798600b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/.testcoverage.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# (mandatory)
2+
# Path to coverage profile file (output of `go test -coverprofile` command).
3+
#
4+
# For cases where there are many coverage profiles, such as when running
5+
# unit tests and integration tests separately, you can combine all those
6+
# profiles into one. In this case, the profile should have a comma-separated list
7+
# of profile files, e.g., 'cover_unit.out,cover_integration.out'.
8+
profile: coverage.out
9+
10+
# Holds coverage thresholds percentages, values should be in range [0-100].
11+
threshold:
12+
# (optional; default 0)
13+
# Minimum coverage percentage required for individual files.
14+
# file: 70
15+
16+
# (optional; default 0)
17+
# Minimum coverage percentage required for each package.
18+
# package: 80
19+
20+
# (optional; default 0)
21+
# Minimum overall project coverage percentage required.
22+
total: 80
23+
24+
# Holds regexp rules which will override thresholds for matched files or packages
25+
# using their paths.
26+
#
27+
# First rule from this list that matches file or package is going to apply
28+
# new threshold to it. If project has multiple rules that match same path,
29+
# override rules should be listed in order from specific to more general rules.
30+
# override:
31+
# # Increase coverage threshold to 100% for `foo` package
32+
# # (default is 80, as configured above in this example).
33+
# - path: ^pkg/lib/foo$
34+
# threshold: 100
35+
36+
# Holds regexp rules which will exclude matched files or packages
37+
# from coverage statistics.
38+
exclude:
39+
# Exclude files or packages matching their paths
40+
paths:
41+
- zz_generated.deepcopy.go
42+
- openapi_generated.go
43+
- testing
44+
- pkg\\/client
45+
46+
# File name of go-test-coverage breakdown file, which can be used to
47+
# analyze coverage difference.
48+
breakdown-file-name: ''
49+
50+
diff:
51+
# File name of go-test-coverage breakdown file which will be used to
52+
# report coverage difference.
53+
base-breakdown-file-name: ''

0 commit comments

Comments
 (0)