Skip to content

E2E testing #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 30, 2025
Merged

E2E testing #10

merged 18 commits into from
Jun 30, 2025

Conversation

geelen
Copy link
Collaborator

@geelen geelen commented Jun 30, 2025

Something's fucky. I was getting a oe.handleMessage is not a function, but it's a ghost. I had two checkouts of this project on my machine at the same SHA, one worked, one didn't. The one that worked only worked in dev, not prod build.

So this is a start on a E2E suite which, so far, showed me that the issue is present on SDK v1.13.2 and not 1.13.1. Haven't tried tracking down exactly what changed, but I can start to now.

geelen added 12 commits June 30, 2025 10:22
- Create /test directory with Vitest + Playwright integration tests
- Automate full build pipeline: use-mcp library → inspector → browser testing
- Implement smart port management to avoid conflicts with existing processes
- Add multiple test modes:
  - `pnpm test`: visible browser (default)
  - `pnpm test:headless`: headless mode
  - `pnpm test:watch`: watch mode for development
  - `pnpm test:debug`: hanging process reporter
- Test state management via cache directory (git-ignored)
- Process group cleanup with signal handling for robust teardown
- Simple HTTP server instead of Express to minimize hanging connections
- Full end-to-end validation of MCP server connections and tool discovery

Tests successfully validate:
- Library builds correctly
- Inspector interface loads in browser
- MCP server connections work end-to-end
- Tool discovery and availability verification
@geelen geelen merged commit ace3220 into main Jun 30, 2025
5 checks passed
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.

1 participant