-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.testcoverage.yml
114 lines (103 loc) · 3.51 KB
/
.testcoverage.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Copyright (c) 2024 Fantom Foundation
#
# Use of this software is governed by the Business Source License included
# in the LICENSE file and at fantom.foundation/bsl11.
#
# Change Date: 2028-4-16
#
# On the date above, in accordance with the Business Source License, use of
# this software will be governed by the GNU Lesser General Public License v3.
# (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/org/project"
# Holds coverage thresholds percentages, values should be in range [0-100]
threshold:
# (optional; default 0)
# The minimum coverage that each file should have
file: 80
# (optional; default 0)
# The minimum coverage that each package should have
package: 85
# (optional; default 0)
# The minimum total coverage project should have
total: 68
# 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:
# files
- threshold: 0
path: go/ct/spc/specification.go
- threshold: 0
path: go/ct/st/transient_storage.go
- threshold: 0
path: go/ct/utils/adapter.go
- threshold: 0
path: go/geth_adapter/adapter.go
- threshold: 0
path: go/integration_test/processor/scenario.go
- threshold: 0
path: go/interpreter/evmc/evmc_interpreter.go
- threshold: 0
path: go/interpreter/evmc/evmc_steppable_interpreter.go
- threshold: 0
path: go/interpreter/geth/ct.go
- threshold: 0
path: go/processor/floria/processor.go
- threshold: 0
path: go/processor/opera/processor.go
- threshold: 0
path: go/tosca/interpreter_registry.go
- threshold: 0
path: go/tosca/utils.go
# packages
- threshold: 0
path: go/ct/spc
- threshold: 0
path: go/ct/utils
- threshold: 0
path: go/geth_adapter
- threshold: 0
path: go/interpreter/evmzero
- threshold: 0
path: go/interpreter/evmrs
- threshold: 0
path: go/interpreter/geth
- threshold: 0
path: go/interpreter/evmone
- threshold: 0
path: go/integration_test/processor
- threshold: 0
path: go/interpreter/evmc
- threshold: 100
path: go/interpreter/lfvm
- threshold: 0
path: go/processor/floria
- threshold: 0
path: go/processor/opera
- threshold: 0
path: go/tosca
# Holds regexp rules which will exclude matched files or packages
# from coverage statistics
exclude:
# Exclude files or packages matching their paths
paths:
- ^(.+)mock(.+) # mock files should not be tested
- go/ct/common/error.go # error file only declares error type without any logic
- go/ct/driver/ # entry points, logic should be tested elsewhere.
- go/examples # examples are not tested.
- third_party/ # exclude all files in `third_party` directory
# NOTES:
# - symbol `/` in all path regexps will be replaced by current OS file path separator
# to properly work on Windows