forked from connorgallopo/Tracearr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
112 lines (97 loc) · 2.34 KB
/
codecov.yml
File metadata and controls
112 lines (97 loc) · 2.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
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
# Codecov Configuration
# https://docs.codecov.com/docs/codecov-yaml
coverage:
# Project coverage - overall repository coverage
status:
project:
default:
# Current baseline ~28%, allow small drops
target: 25%
threshold: 2%
# Only check coverage on server package
paths:
- "apps/server/src/**"
# Patch coverage - new/modified code must meet threshold
patch:
default:
# New code should have reasonable coverage
target: 60%
threshold: 5%
paths:
- "apps/server/src/**"
# Ignore files that shouldn't count toward coverage
ignore:
- "**/*.test.ts"
- "**/*.spec.ts"
- "**/test/**"
- "**/tests/**"
- "**/__tests__/**"
- "**/node_modules/**"
- "**/dist/**"
- "**/*.d.ts"
- "**/types.ts"
# Config files
- "**/*.config.ts"
- "**/*.config.js"
# Comment configuration for PRs
comment:
layout: "header, diff, flags, components"
behavior: default
require_changes: true
require_base: false
require_head: true
# Component coverage - track coverage by area
component_management:
default_rules:
statuses:
- type: project
target: auto
threshold: 2%
individual_components:
- component_id: utils
name: Utilities
paths:
- apps/server/src/utils/**
- component_id: services
name: Services
paths:
- apps/server/src/services/**
- component_id: routes
name: Routes
paths:
- apps/server/src/routes/**
- component_id: jobs
name: Background Jobs
paths:
- apps/server/src/jobs/**
# Flag management for different test types
flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: auto
- type: patch
target: 60%
individual_flags:
- name: unit
paths:
- apps/server/src/utils/**
- apps/server/src/services/mediaServer/**
carryforward: true
- name: services
paths:
- apps/server/src/services/**
- apps/server/src/jobs/**
carryforward: true
- name: routes
paths:
- apps/server/src/routes/**
carryforward: true
- name: integration
paths:
- apps/server/src/**
carryforward: true
# GitHub integration
github_checks:
annotations: true