|
| 1 | +# (mandatory) |
| 2 | +# Path to coverprofile 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: cover.out |
| 9 | + |
| 10 | +# (optional; but recommended to set) |
| 11 | +# When specified reported file paths will not contain local prefix in the output |
| 12 | +local-prefix: "github.com/org/project" |
| 13 | + |
| 14 | +# Holds coverage thresholds percentages, values should be in range [0-100] |
| 15 | +threshold: |
| 16 | + # (optional; default 0) |
| 17 | + # The minimum coverage that each file should have |
| 18 | + file: 70 |
| 19 | + |
| 20 | + # (optional; default 0) |
| 21 | + # The minimum coverage that each package should have |
| 22 | + package: 70 |
| 23 | + |
| 24 | + # (optional; default 0) |
| 25 | + # The minimum total coverage project should have |
| 26 | + total: 70 |
| 27 | +# Holds regexp rules which will override thresholds for matched files or packages |
| 28 | +# using their paths. |
| 29 | +# |
| 30 | +# First rule from this list that matches file or package is going to apply |
| 31 | +# new threshold to it. If project has multiple rules that match same path, |
| 32 | +# override rules should be listed in order from specific to more general rules. |
| 33 | +#override: |
| 34 | +# Increase coverage threshold to 100% for `foo` package |
| 35 | +# (default is 80, as configured above in this example) |
| 36 | +#- threshold: 100 |
| 37 | +# path: ^pkg/lib/foo$ |
| 38 | + |
| 39 | +# Holds regexp rules which will exclude matched files or packages |
| 40 | +# from coverage statistics |
| 41 | +#exclude: |
| 42 | +# Exclude files or packages matching their paths |
| 43 | +#paths: |
| 44 | +# - \.pb\.go$ # excludes all protobuf generated files |
| 45 | +# - ^pkg/bar # exclude package `pkg/bar` |
| 46 | + |
| 47 | +# NOTES: |
| 48 | +# - symbol `/` in all path regexps will be replaced by current OS file path separator |
| 49 | +# to properly work on Windows |
0 commit comments