Skip to content

Commit e793dcb

Browse files
committed
codcov
1 parent a55680d commit e793dcb

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

codecov.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Codecov configuration for Terminal.Gui
2+
# Documentation: https://docs.codecov.com/docs/codecov-yaml
3+
4+
# Coverage targets and thresholds
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "60...90" # Yellow between 60-90%, green above 90%
9+
10+
status:
11+
# Overall project coverage
12+
project:
13+
default:
14+
target: 70% # Minimum target coverage
15+
threshold: 1% # Allow 1% decrease without failing
16+
base: auto # Compare against base branch (v2_develop)
17+
if_ci_failed: error # Fail if CI fails
18+
19+
# Per-patch (PR) coverage
20+
patch:
21+
default:
22+
target: 70% # New code should have 70%+ coverage
23+
threshold: 5% # Allow 5% variance
24+
base: auto
25+
if_ci_failed: error
26+
27+
# Comment configuration for PRs
28+
comment:
29+
layout: "diff, files, footer"
30+
behavior: default # Update existing comment
31+
require_changes: false # Always comment
32+
require_base: true # Require base coverage to compare
33+
require_head: true # Require head coverage
34+
branches:
35+
- v2_develop
36+
- v2_release
37+
38+
# Flag-based coverage grouping (matches your workflow flags)
39+
flags:
40+
unittests-nonparallel:
41+
carryforward: false # Don't carry forward if missing
42+
paths:
43+
- Terminal.Gui/
44+
45+
unittests-parallel:
46+
carryforward: false
47+
paths:
48+
- Terminal.Gui/
49+
50+
integrationtests:
51+
carryforward: false
52+
paths:
53+
- Terminal.Gui/
54+
55+
# Files and paths to ignore
56+
ignore:
57+
- "Examples/**/*" # Example projects
58+
- "Tests/**/*" # Test projects themselves
59+
- "UnitTests/**/*" # Legacy test location
60+
- "docfx/**/*" # Documentation
61+
- "Scripts/**/*" # PowerShell scripts
62+
- "**/*.Designer.cs" # Auto-generated files
63+
- "**/obj/**/*" # Build artifacts
64+
- "**/bin/**/*" # Build artifacts
65+
66+
# # Path fixes (normalize Windows paths to Unix)
67+
# fixes:
68+
# - "C:/Users/runner/work/Terminal.Gui/Terminal.Gui/::" # Windows CI paths
69+
# - "D:/a/Terminal.Gui/Terminal.Gui/::" # Alternative Windows paths
70+
71+
# Only process coverage from these branches
72+
branches:
73+
- v2_develop
74+
- v2_release

0 commit comments

Comments
 (0)