Skip to content

Add coverage support for subprocesses (mcp server) - #68

Merged
gvanrossum-ms merged 1 commit into
mainfrom
guido
Nov 5, 2025
Merged

Add coverage support for subprocesses (mcp server)#68
gvanrossum-ms merged 1 commit into
mainfrom
guido

Conversation

@gvanrossum-ms

Copy link
Copy Markdown
Contributor

I was helped by ChatGPT 5 and Copilot (Claude Sonnet 4.5).

  • Add .coveragerc with settings for [run] and [report]
  • Add code to mcp/server.py to initialize coverage (effective only when COVERAGE_PROCESS_START is set)
  • Add code to test_mcp_server.py to pass that env var into the subprocess (and slight refactor)
  • Update Makefile so make coverage does the right thing now
  • Fix .gitignore

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@gvanrossum-ms
gvanrossum-ms merged commit 0195ef8 into main Nov 5, 2025
21 checks passed
@gvanrossum-ms
gvanrossum-ms deleted the guido branch November 5, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants