docs: add coverage verification instruction to CLAUDE.md (#2050)
This commit is contained in:
parent
29a14ab9e5
commit
a287a40184
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ This document contains critical information about working with this codebase. Fo
|
|||
- Bug fixes require regression tests
|
||||
- IMPORTANT: The `tests/client/test_client.py` is the most well designed test file. Follow its patterns.
|
||||
- IMPORTANT: Be minimal, and focus on E2E tests: Use the `mcp.client.Client` whenever possible.
|
||||
- IMPORTANT: Before pushing, verify 100% branch coverage on changed files by running
|
||||
`uv run --frozen pytest -x` (coverage is configured in `pyproject.toml` with `fail_under = 100`
|
||||
and `branch = true`). If any branch is uncovered, add a test for it before pushing.
|
||||
|
||||
Test files mirror the source tree: `src/mcp/client/streamable_http.py` → `tests/client/test_streamable_http.py`
|
||||
Add tests to the existing file for that module.
|
||||
|
|
|
|||
Loading…
Reference in a new issue