-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
65 lines (59 loc) · 1.54 KB
/
Copy pathcodecov.yml
File metadata and controls
65 lines (59 loc) · 1.54 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
# https://docs.codecov.com/docs/codecov-yaml
coverage:
status:
project:
default:
target: 80% # Default target for all components
threshold: 10% # Allowable drop in coverage without failing
if_not_found: success # If no coverage report is found, don't fail
if_ci_failed: error # CI failure should fail coverage check
patch:
default:
target: 80% # Target for changed lines
threshold: 10% # Allowable drop in coverage without failing
flags:
unit:
paths:
- "**/src/services/"
- "**/src/controllers/"
- "**/src/routes/"
carryforward: true
component_management:
individual_components:
- component_id: services
name: Services
paths:
- "**/src/services/"
- component_id: controllers
name: Controllers
paths:
- "**/src/controllers/"
- component_id: routes
name: Routes
paths:
- "**/src/routes/"
comment:
layout: "header, diff, flags, components"
# https://docs.codecov.com/docs/ignoring-paths
ignore:
# Ignoring a specific folder
- "**/postman-collections/**/*"
- "**/src/database/**/*"
- "**/src/docs/**/*"
- "**/src/middlewares/**/*"
- "**/src/models/**/*"
- "**/tests/**/*"
# Ignoring specific file types
- "**/*.yml"
- "**/*.json"
- "**/*.env"
# Ignoring specific file names
- "**/interface**"
- "**/src/app.ts"
- "**/src/server.ts"
- "**/.gitignore"
- "**/.prettierignore"
- "**/.prettierrc"
- "**/jest.config.js"
- "**/LICENSE"
- "**/README.md"