Skip to content

test: raise coverage for runner, SSE errors, CLI headers, reports (#64) - #166

Draft
askmy-stack wants to merge 1 commit into
mainfrom
cursor/coverage-runner-sse-probes-c2a5
Draft

askmy-stack wants to merge 1 commit into
mainfrom
cursor/coverage-runner-sse-probes-c2a5

Conversation

@askmy-stack

@askmy-stack askmy-stack commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Raises test coverage for the hotspots called out in #64: OpenAICompatibleRunner HTTP paths, SSE capture error branches, CLI --header / --sse, and probe report render helpers. Documents an explicit 80% module target with waivers for remaining cli.py / mcp_capture.py edges.

Type of change

  • Tests / CI
  • Documentation

Test plan

  • ruff check .
  • ruff format --check .
  • mypy src
  • pytest
  • Manual CLI check (if applicable): tool-semantics compare …

Notes for reviewers

  • New FakeMcpSseServer modes: hang_without_endpoint, empty_endpoint, post_fail_auth, notify_fail_auth
  • docs/coverage.md records waivers where modules remain below 80% after this PR (cli.py ~72%, mcp_capture.py ~74%); runner.py / report.py / probes.py are at or above target
  • Closes acceptance criteria from Raise test coverage for runner, SSE capture error paths, and probe reports #64 (HTTP runner, SSE timeout/endpoint/auth/notification, CLI headers/SSE, report helpers, documented target)
  • Full local suite + ruff + mypy green before push
Open in Web Open in Cursor 

Add OpenAICompatibleRunner urlopen tests, SSE timeout/empty-endpoint/
POST-and-notification auth failures via FakeMcpSseServer modes, CLI
--header/--sse checks, report markdown helpers, and docs/coverage.md
waivers for remaining cli/mcp_capture edges.

Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>

This branch has not been deployed

No deployments
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