-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodecov.yml
More file actions
58 lines (49 loc) · 1.64 KB
/
codecov.yml
File metadata and controls
58 lines (49 loc) · 1.64 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
# Codecov configuration for dotnet-mcp
# See: https://docs.codecov.com/docs/codecov-yaml
# Coverage thresholds and status checks
coverage:
status:
project:
default:
# Require overall project coverage to be maintained
target: auto
threshold: 1%
# Only apply to changes (not absolute coverage)
if_ci_failed: error
patch:
default:
# Require new code to have reasonable coverage
target: 70%
threshold: 5%
if_ci_failed: error
# Files and patterns to ignore in coverage reports
ignore:
# Build artifacts and intermediate outputs
- "**/obj/**"
- "**/bin/**"
# Auto-generated .NET files (compiler and SDK)
- "**/*.g.cs" # Generated C# files (Regex, etc.)
- "**/*.GlobalUsings.g.cs" # Global usings auto-generated by SDK
- "**/*.AssemblyInfo.cs" # Assembly metadata auto-generated by SDK
- "**/*.AssemblyAttributes.cs" # Assembly attributes auto-generated by SDK
# Source generator outputs
- "**/generated/**" # Common generator output directory
- "**/*Generator*/**/*.cs" # Files in generator-specific directories
# Test projects (we measure coverage of production code, not test code)
- "**/*.Tests/**"
- "**/Tests/**"
# Comment settings
comment:
# Post coverage summary as PR comment
layout: "diff, files"
behavior: default
require_changes: false
require_base: no
require_head: yes
# Additional options
codecov:
# Wait for CI to complete before processing
require_ci_to_pass: yes
# Notify on coverage changes
notify:
wait_for_ci: yes