forked from promptfoo/promptfoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
57 lines (52 loc) · 1.21 KB
/
codecov.yml
File metadata and controls
57 lines (52 loc) · 1.21 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
# Codecov configuration for promptfoo
# https://docs.codecov.com/docs/codecov-yaml
coverage:
status:
project:
default:
# Require overall project coverage to not decrease
target: auto
threshold: 0%
informational: false
patch:
default:
# Require new code in PRs to have reasonable coverage
target: 50%
threshold: 0%
informational: false
comment:
layout: 'header, diff, flags, components'
behavior: default
require_changes: false
# Ignore generated files and test files in coverage reports
ignore:
- 'dist/**/*'
- 'coverage/**/*'
- 'node_modules/**/*'
- '**/*.test.ts'
- '**/*.test.tsx'
- '**/*.d.ts'
- 'src/app/**/*' # Frontend has separate coverage
- 'site/**/*' # Documentation site - no coverage tracking
- 'examples/**/*'
- 'drizzle/**/*'
- 'scripts/**/*'
# Component flags for separate coverage tracking
flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: auto
threshold: 0%
- type: patch
target: 50%
flags:
backend:
paths:
- src/
carryforward: true
frontend:
paths:
- src/app/src/
carryforward: true