Skip to content

feat: add E2E tests for full pipeline and MCP transports#5

Merged
iSamBa merged 1 commit into
mainfrom
feature/e2e-tests
Mar 14, 2026
Merged

feat: add E2E tests for full pipeline and MCP transports#5
iSamBa merged 1 commit into
mainfrom
feature/e2e-tests

Conversation

@iSamBa
Copy link
Copy Markdown
Owner

@iSamBa iSamBa commented Mar 14, 2026

Summary

  • Add 21 end-to-end tests exercising the complete init → ingest → serve → query pipeline with real LanceDB, real PDF parsing, and mocked OpenAI embeddings
  • CLI E2E tests (8): init scaffold, ingest, force re-ingest, stats, search, filtered search, delete, config JSON output
  • HTTP transport tests (11): list tools/prompts/resources, all 6 MCP tool calls, prompt retrieval, resource read via MCP client SDK
  • stdio transport tests (2): list_tools and call list_docs via subprocess
  • Add pytest-asyncio, pytest-timeout to dev deps; register e2e marker; add separate e2e CI job (Python 3.12, depends on test)

Test plan

  • All 21 E2E tests pass locally (uv run pytest tests/e2e/ -v --timeout=120)
  • All 371 existing unit tests still pass (uv run pytest tests/ --ignore=tests/e2e/)
  • Lint and format checks pass (uv run ruff check src/ tests/ && uv run ruff format --check src/ tests/)
  • CI pipeline passes (lint, test, build, e2e jobs)

🤖 Generated with Claude Code

Add 21 end-to-end tests exercising the complete init → ingest → serve → query
pipeline with real LanceDB, real PDF parsing, and mocked OpenAI embeddings.

- CLI E2E tests (8): init, ingest, force re-ingest, stats, search, filtered
  search, delete, config output
- HTTP transport tests (11): list tools/prompts/resources, all 6 tool calls,
  prompt retrieval, resource read via MCP client SDK
- stdio transport tests (2): list_tools and call list_docs via subprocess

Also adds pytest-asyncio, pytest-timeout to dev deps, registers e2e marker,
and adds a separate e2e CI job (Python 3.12, depends on unit test job).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@iSamBa iSamBa merged commit d8da13d into main Mar 14, 2026
7 checks passed
@iSamBa iSamBa deleted the feature/e2e-tests branch March 14, 2026 10:11
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