-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
57 lines (52 loc) · 1.86 KB
/
codecov.yml
File metadata and controls
57 lines (52 loc) · 1.86 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
# Codecov configuration.
# https://docs.codecov.com/docs/codecov-yaml
coverage:
precision: 2
round: down
range: "70...100"
status:
# Project-level coverage check (overall coverage of main).
project:
default:
target: auto
# Allow a 1% drop in coverage before failing the check.
threshold: 1%
# Only run on pushes to main, not PRs (PRs use the patch check).
if_ci_failed: error
informational: false
# Patch-level coverage check (coverage of changed lines in the PR).
patch:
default:
target: 80%
# Allow some leeway — not every changed line is testable.
threshold: 5%
if_ci_failed: error
informational: false
# Pull request comment configuration.
comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: false
require_base: false
require_head: true
# Files to ignore in coverage reporting.
# These are paths relative to the repository root.
ignore:
# Build artefacts
- "target/"
# Test files (their own coverage is not the goal — the code they exercise is)
- "tests/"
# Build scripts
- "build.rs"
# Configuration examples
- "config/"
# Generated documentation
- "docs/"
# CLI entry point — uses tokio::main and std::process::exit which
# cannot be unit-tested without forking the process. Functionality is
# covered end-to-end by the Python integration tests in tests/integration/.
- "src/main.rs"
# Stdio transport — async I/O wrapping tokio::io::stdin()/stdout(). Cannot
# be unit-tested without invasive refactoring to inject readers/writers.
# Behaviour is exercised end-to-end by the Python integration tests.
- "src/mcp/transport.rs"