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
# Codecov configuration for OpenTUI
# https://docs.codecov.com/docs/codecov-yaml
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
# Overall project coverage threshold
target: 70%
threshold: 2% # Allow 2% drop before failing
informational: false
only_pulls: true
patch:
default:
# New code coverage threshold
target: 80%
threshold: 0% # New code must meet threshold exactly
informational: false
# Module-specific coverage targets
# Matches patterns from ci.yml threshold checks
status_project:
color:
paths:
- "src/color.rs"
target: 95%
buffer:
paths:
- "src/buffer/**"
target: 90%
cell:
paths:
- "src/cell.rs"
target: 95%
input:
paths:
- "src/input/**"
target: 90%
text:
paths:
- "src/text/**"
target: 85%
renderer:
paths:
- "src/renderer/**"
target: 85%
ansi:
paths:
- "src/ansi/**"
target: 90%
terminal:
paths:
- "src/terminal/**"
target: 75% # Lower due to FFI limitations
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: false
require_base: yes
require_head: yes
ignore:
# Exclude test and benchmark code from coverage
- "tests/**"
- "benches/**"
- "examples/**"
# Exclude demo binary (tested separately via headless smoke)
- "src/bin/**"
flags:
unittests:
paths:
- "src/**"
carryforward: true