-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcodecov.yml
More file actions
85 lines (62 loc) · 1.34 KB
/
codecov.yml
File metadata and controls
85 lines (62 loc) · 1.34 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
# Codecov Configuration
# https://docs.codecov.io/docs/codecov-yaml
codecov:
require_ci_to_pass: true
max_report_age: 24h
coverage:
precision: 2
round: down
range: "60...90"
status:
project:
default:
target: auto
threshold: 2%
# Don't fail CI on coverage decrease
informational: true
patch:
default:
target: 70%
threshold: 5%
# New code should have reasonable coverage
informational: false
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: true
require_base: false
require_head: true
# File patterns to ignore in coverage reports
ignore:
# Dependencies and build output
- "node_modules/**"
- "dist/**"
- ".next/**"
- "coverage/**"
# Test files (don't count tests in coverage)
- "**/*.test.ts"
- "**/*.test.tsx"
- "**/*.spec.ts"
- "**/*.spec.tsx"
- "tests/**"
- "**/vitest.config.ts"
- "**/vitest-setup.ts"
# Configuration files
- "*.config.ts"
- "*.config.js"
- "*.config.mjs"
- "eslint.config.mjs"
- "postcss.config.mjs"
- "next.config.ts"
# Generated code
- "src/generated/**"
- "prisma/**"
# Tooling
- "tooling/**"
- "scripts/**"
# Coverage flags for different parts of the codebase
flags:
unittests:
paths:
- src/
carryforward: true