-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
142 lines (119 loc) · 3.97 KB
/
codecov.yml
File metadata and controls
142 lines (119 loc) · 3.97 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# =============================================================================
# Codecov Configuration
# Require 75% overall coverage, exclude test files and non-source code
# =============================================================================
coverage:
status:
project:
default:
target: 87%
threshold: 1%
# Fail CI if Codecov upload/report indicates a problem
require_ci_to_pass: yes
# -----------------------------------------------------------------------------
# PR Comment Configuration
# -----------------------------------------------------------------------------
comment:
# Post coverage report as PR comment
require_changes: false
require_base: false
require_head: true
layout: "reach, diff, flags, files"
behavior: default
# -----------------------------------------------------------------------------
# Exclude from coverage reporting
# -----------------------------------------------------------------------------
ignore:
# Test files
- "**/tests/**"
- "**/test/**"
- "**/__tests__/**"
- "**/test_*.go"
- "**/*_test.go"
- "**/*.test.ts"
- "**/*.test.tsx"
- "**/*.spec.ts"
- "**/*.spec.tsx"
- "**/vitest.config.ts"
- "**/vitest.setup.ts"
# E2E tests
- "**/e2e/**"
- "**/integration/**"
# Documentation
- "docs/**"
- "*.md"
# CI/CD & Config
- ".github/**"
- "scripts/**"
- "tools/**"
- "*.yml"
- "*.yaml"
- "*.json"
# Frontend build artifacts & dependencies
- "frontend/node_modules/**"
- "frontend/dist/**"
- "frontend/coverage/**"
- "frontend/test-results/**"
- "frontend/public/**"
# Backend non-source files
- "backend/cmd/seed/**"
- "backend/data/**"
- "backend/coverage/**"
- "backend/bin/**"
- "backend/*.cover"
- "backend/*.out"
- "backend/*.html"
- "backend/codeql-db/**"
# CodeQL artifacts
- "codeql-db/**"
- "codeql-db-*/**"
- "codeql-agent-results/**"
- "codeql-custom-queries-*/**"
- "*.sarif"
# Config files (no logic)
- "**/tailwind.config.js"
- "**/postcss.config.js"
- "**/eslint.config.js"
- "**/vite.config.ts"
- "**/tsconfig*.json"
# Type definitions only
- "**/*.d.ts"
# Import/data directories
- "import/**"
- "data/**"
- ".cache/**"
# CrowdSec config files (no logic to test)
- "configs/crowdsec/**"
# ==========================================================================
# Backend packages excluded from coverage (match go-test-coverage.sh)
# These are entrypoints and infrastructure code that don't benefit from
# unit tests - they are tested via integration tests instead.
# ==========================================================================
# Main entry points (bootstrap code only)
- "backend/cmd/api/**"
# Infrastructure packages (logging, metrics, tracing)
# These are thin wrappers around external libraries with no business logic
- "backend/internal/logger/**"
- "backend/internal/metrics/**"
- "backend/internal/trace/**"
# Backend test utilities (test infrastructure, not application code)
# These files contain testing helpers that take *testing.T and are only
# callable from *_test.go files - they cannot be covered by production code
- "backend/internal/api/handlers/testdb.go"
- "backend/internal/api/handlers/test_helpers.go"
# DNS provider implementations (tested via integration tests, not unit tests)
# These are plugin implementations that interact with external DNS APIs
# and are validated through service-level integration tests
- "backend/pkg/dnsprovider/builtin/**"
# ==========================================================================
# Frontend test utilities and helpers
# These are test infrastructure, not application code
# ==========================================================================
# Test setup and utilities directory
- "frontend/src/test/**"
# Vitest setup files
- "frontend/vitest.config.ts"
- "frontend/src/setupTests.ts"
# Playwright E2E config
- "frontend/playwright.config.ts"
- "frontend/e2e/**"