-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Freeman
committed
Oct 5, 2024
1 parent
0053c96
commit ecd8139
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# (mandatory) | ||
# Path to coverprofile file (output of `go test -coverprofile` command). | ||
# | ||
# For cases where there are many coverage profiles, such as when running | ||
# unit tests and integration tests separately, you can combine all those | ||
# profiles into one. In this case, the profile should have a comma-separated list | ||
# of profile files, e.g., 'cover_unit.out,cover_integration.out'. | ||
profile: cover.out | ||
|
||
# (optional; but recommended to set) | ||
# When specified reported file paths will not contain local prefix in the output | ||
local-prefix: "github.com/carverauto/eventrunner" | ||
|
||
# Holds coverage thresholds percentages, values should be in range [0-100] | ||
threshold: | ||
# (optional; default 0) | ||
# The minimum coverage that each file should have | ||
file: 70 | ||
|
||
# (optional; default 0) | ||
# The minimum coverage that each package should have | ||
package: 80 | ||
|
||
# (optional; default 0) | ||
# The minimum total coverage project should have | ||
total: 95 | ||
|
||
# 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: | ||
# Increase coverage threshold to 100% for `foo` package | ||
# (default is 80, as configured above in this example) | ||
- 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 | ||
- ^pkg/bar # exclude package `pkg/bar` | ||
|
||
# NOTES: | ||
# - symbol `/` in all path regexps will be replaced by current OS file path separator | ||
# to properly work on Windows |