-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcodecov.yml
75 lines (64 loc) · 1.57 KB
/
codecov.yml
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
# .codecov.yml configuration for a small open source project
codecov:
notify:
require_ci_to_pass: yes
after_n_builds: 1
coverage:
status:
project:
default:
# Set the minimum coverage percentage required
target: 72%
patch:
default:
# Disable coverage percentage checks on diffs
enabled: no
precision: 2 # Report coverage numbers with a precision of 2 decimal places
round: down # Round coverage numbers down
# Define a threshold below which the coverage is considered poor
threshold: 1%
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: False
require_base: False
require_head: False
require_report: False
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
flags:
unittest: # Define a flag for unit tests
paths:
- "tests/unit"
integration: # Define a flag for integration tests
paths:
- "tests/integration"
# Ignore files and directories that should not be included in coverage
ignore:
- "node_modules/*"
- "vendor/*"
- "docs/*"
- "**/*.md"
- "**/*Tests.*" # Ignore any project with 'Tests.' in its name
# Settings for custom coverage reporting
yaml:
min_version: "1.0.0"
# Configuration for how the coverage reports are uploaded
upload:
# Define the method for uploading coverage reports
method: "post"
max_upload_size: 300
compression: true
chunk_size: 1000
# Repository settings
repository:
owner: "paulegradie"
name: "Sailfish"
branch: "main"
commit: "HEAD"
pr: "auto"