-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.testcoverage.yml
More file actions
29 lines (24 loc) · 884 Bytes
/
Copy path.testcoverage.yml
File metadata and controls
29 lines (24 loc) · 884 Bytes
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
# (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/piotr-ku/yaml-runner-go"
# Holds coverage thresholds percentages, values should be in range [0-100]
threshold:
# (optional; default 0)
# The minimum coverage that each file should have
file: 100
# (optional; default 0)
# The minimum coverage that each package should have
package: 100
# (optional; default 0)
# The minimum total coverage project should have
total: 100
# Holds regexp rules which will exclude matched files or packages
# from coverage statistics.
exclude:
# Exclude files or packages matching their paths
paths:
- ^main\.go$ # excludes all protobuf generated files
- ^cmd # exclude package `pkg/bar`