-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
59 lines (54 loc) · 1.55 KB
/
codecov.yml
File metadata and controls
59 lines (54 loc) · 1.55 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
# Codecov Configuration
# This is the authoritative source for coverage validation in the MCP project.
# Local coverage scripts are for development only - all official validation
# is performed by Codecov to ensure consistency across platforms.
codecov:
# Require the Codecov token for uploads
require_ci_to_pass: true
notify:
# Wait for all CI jobs before posting status
wait_for_ci: true
coverage:
# Coverage requirements - these are the official thresholds
status:
project:
default:
# Overall project coverage target
target: 80%
# Allow small drops in coverage
threshold: 1%
# Fail the status if coverage drops below threshold
if_ci_failed: error
patch:
default:
# New code must have high coverage
target: 80%
# Be strict about new code coverage
threshold: 0%
# Ignore certain files/paths from coverage
ignore:
- "examples/**/*"
- "**/tests/**/*" # Test files themselves
- "**/benches/**/*" # Benchmark files
- "**/*_tests.rs" # Test modules
- "**/build.rs" # Build scripts
# Comment settings for PRs
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: false
require_base: false
require_head: true
# Flag configuration for different test types
flags:
unittests:
paths:
- "mcp-protocol/**"
- "mcp-server/**"
- "mcp-transport/**"
- "mcp-auth/**"
- "mcp-security/**"
- "mcp-security-middleware/**"
- "mcp-logging/**"
- "integration-tests/**"
carryforward: true