-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
51 lines (44 loc) · 1.52 KB
/
codecov.yml
File metadata and controls
51 lines (44 loc) · 1.52 KB
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
# Codecov configuration for WormFS
# See https://docs.codecov.com/docs/codecov-yaml for reference
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
target: 70% # Target coverage percentage
threshold: 5% # Allow 2% drop without failing
if_ci_failed: error # Fail if CI failed
if_not_found: success # Don't fail if coverage data not found
only_pulls: false # Run on all commits, not just PRs
patch:
default:
target: 70% # New code should have 70% coverage
threshold: 5% # Allow 5% drop without failing
if_ci_failed: error
if_not_found: success
only_pulls: true # Only check patch coverage on PRs
ignore:
- "benches/**/*" # Ignore benchmark files
- "tests/**/*" # Ignore test files (already testing, don't need coverage)
- "src/bin/*" # Ignore CLI entry point (hard to test comprehensively)
- "src/worm_validator/*" # Ignore validator test harness
- "src/test_utils/*" # Ignore test utilities
- "examples/**/*" # Ignore example code
comment:
layout: "reach,diff,flags,tree,reach"
behavior: default
require_changes: false
require_base: false
require_head: true
github_checks:
annotations: true
# Prevent status checks from failing the build for small changes
parsers:
gcov:
branch_detection:
conditional: true
loop: true
method: false
macro: false