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
# Codecov Configuration
# https://docs.codecov.com/docs/codecov-yaml
coverage:
# Project-wide thresholds
status:
project:
default:
target: 70% # Target overall coverage
threshold: 5% # Allow 5% drop before failing
informational: false # Block PRs if below threshold
# Per-module thresholds (patch coverage)
patch:
default:
target: 80% # New code should have higher coverage
threshold: 10% # More lenient for incremental changes
informational: true # Don't block, but report
# Precision for percentages
precision: 2
round: down
range: "50...100" # Color range: red at 50%, green at 100%
# Comment configuration for PRs
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: true # Only comment if coverage changed
require_base: true # Require base commit for comparison
require_head: true # Require head commit
# Flag configuration for different test types
flags:
unit:
paths:
- src/
carryforward: true
integration:
paths:
- tests/
carryforward: true
# Ignore certain paths from coverage
ignore:
- "**/*.snap" # Snapshot files
- "tests/common/**" # Test infrastructure
- "benches/**" # Benchmarks
- "examples/**" # Examples
# Parsers configuration
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
# GitHub integration
github_checks:
annotations: true # Show coverage annotations in PR diffs