Skip to content

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Nov 17, 2025

The tests use real MCP backend servers created with mark3labs/mcp-go SDK to ensure authentic protocol behavior.

Test helpers in test/integration/vmcp/helpers/ provide reusable utilities for creating vMCP servers, MCP clients, backend servers, and common test assertions.

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

❌ Patch coverage is 0% with 238 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.03%. Comparing base (083a69f) to head (f3ad1ac).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
test/integration/vmcp/helpers/vmcp_server.go 0.00% 91 Missing ⚠️
test/integration/vmcp/helpers/backend.go 0.00% 78 Missing ⚠️
test/integration/vmcp/helpers/mcp_client.go 0.00% 69 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2624      +/-   ##
==========================================
- Coverage   55.47%   55.03%   -0.45%     
==========================================
  Files         312      315       +3     
  Lines       29714    29952     +238     
==========================================
  Hits        16485    16485              
- Misses      11789    12027     +238     
  Partials     1440     1440              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@yrobla yrobla left a comment

Choose a reason for hiding this comment

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

how are those tests run?

amirejaz
amirejaz previously approved these changes Nov 18, 2025
@amirejaz
Copy link
Contributor

LGTM, Yolanda has some comments.

@jhrozek
Copy link
Contributor Author

jhrozek commented Nov 18, 2025

how are those tests run?

it's just part of task test because it's a test like any other. Or you can run them directly with go test -v -race ./test/integration/vmcp/...

The tests use real MCP backend servers created with mark3labs/mcp-go SDK
to ensure authentic protocol behavior.

Test helpers in test/integration/vmcp/helpers/ provide reusable utilities
for creating vMCP servers, MCP clients, backend servers, and common
test assertions.
Use select statement instead of ctx.Err() check to avoid race condition
when checking for context cancellation in the goroutine error handler.

This follows Go best practices for context handling.

Addresses review comment from @yrobla.
@jhrozek jhrozek merged commit ff6a1ab into main Nov 19, 2025
29 checks passed
@jhrozek jhrozek deleted the vmcp-integration branch November 19, 2025 09:07
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.

4 participants