-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yaml
More file actions
48 lines (40 loc) · 1.28 KB
/
codecov.yaml
File metadata and controls
48 lines (40 loc) · 1.28 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
# Codecov configuration
# Documentation: https://docs.codecov.com/docs/codecov-yaml
# Validation: `curl -X POST --data-binary @codecov.yml https://codecov.io/validate`
coverage:
precision: 2 # Report coverage to 2 decimal places
round: down # Round down coverage percentages
range: 80..100 # Green at 100%, red at 80%
status:
project:
default:
target: auto # Compare against parent commit
threshold: 0.5% # Allow 0.5% drop without failing
patch:
default:
target: 80% # New code must have 80% coverage
threshold: 0% # No tolerance for coverage drop in new code
# Define the flags (test projects)
flags:
Glob.Api.Tests-ubuntu-latest:
carryforward: true # Keep previous coverage if this flag is missing
Glob.Api.FakeFileSystem.Tests-ubuntu-latest:
carryforward: true
# Configure PR comments
comment:
layout: "reach,diff,flags,tree"
behavior: default # Post new comment for each commit
require_changes: false # Always post comment
require_base: false # Post even if no base commit
require_head: true
# Ignore paths from coverage calculations
ignore:
- "**/obj/**" # Exclude build artifacts
- "**/bin/**"
parsers:
cobertura:
branch_detection:
conditional: yes
loop: yes
method: yes
macro: yes