-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
27 lines (24 loc) · 1005 Bytes
/
Copy pathcodecov.yml
File metadata and controls
27 lines (24 loc) · 1005 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
coverage:
status:
# Overall project coverage — fails if total drops below threshold
project:
default:
target: 10% # ratchet this up as you add tests
threshold: 1% # allow 1% fluctuation before failing
# Coverage on changed lines in the PR — encourages testing new code
patch:
default:
target: 50% # at least half of new/changed lines should be tested
# Paths to exclude from coverage calculation
ignore:
- "pkg/**/mocks/**" # generated mockery mocks
- "pkg/cantonsdk/lapi/**" # generated protobuf types
- "pkg/ethereum/contracts/**" # generated ABI bindings
- "cmd/**" # main entrypoints (thin wrappers)
- "scripts/**" # test/build scripts
- "tests/**" # e2e test infrastructure
- "contracts/**" # Solidity contracts
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: false