-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
74 lines (65 loc) · 2.18 KB
/
Copy pathcodecov.yml
File metadata and controls
74 lines (65 loc) · 2.18 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# =============================================================================
# Codecov Configuration
# Require 85% overall (project) and 85% patch (changed-lines) coverage —
# matches Charon's Definition of Done, and docs/current_spec.md Decision 1:
# both gates are on from the start, accepting an initially-red state until
# PR5/PR6's backfill lands, rather than a softer ramp-up.
# =============================================================================
coverage:
status:
project:
default:
target: 85%
threshold: 1%
patch:
default:
target: 85%
threshold: 1%
# Fail CI if Codecov upload/report indicates a problem
require_ci_to_pass: yes
# -----------------------------------------------------------------------------
# PR Comment Configuration
# -----------------------------------------------------------------------------
comment:
require_changes: false
require_base: false
require_head: true
layout: "reach, diff, flags, files"
behavior: default
# -----------------------------------------------------------------------------
# Exclude from coverage reporting
# -----------------------------------------------------------------------------
ignore:
# Test files
- "**/*_test.go"
- "**/*.test.ts"
- "**/*.test.tsx"
# E2E tests (added in a later PR)
- "frontend/e2e/**"
# Documentation
- "docs/**"
- "*.md"
# CI/CD & config
- ".github/**"
- "scripts/**"
- "*.yml"
- "*.yaml"
- "*.json"
# Frontend build artifacts, dependencies, test infrastructure
- "frontend/node_modules/**"
- "frontend/dist/**"
- "frontend/coverage/**"
- "frontend/public/**"
- "frontend/src/test/**"
- "frontend/vitest.config.ts"
- "frontend/vite.config.ts"
- "frontend/eslint.config.js"
- "frontend/postcss.config.js"
- "frontend/tailwind.config.js"
- "**/*.d.ts"
# Backend entrypoint — bootstrap code only, no business logic worth unit
# testing — and test infrastructure (only ever called from *_test.go
# files). Matches scripts/go-test-coverage.sh's EXCLUDE_PACKAGES — keep
# the two in sync manually, per CLAUDE.md's Conventions section.
- "backend/cmd/api/**"
- "backend/internal/testutil/**"