diff --git a/backend/Makefile b/backend/Makefile index fc86162..87681fe 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -1,4 +1,4 @@ -.PHONY: help lint lint-fix format format-check type-check test test-cov validate clean install-dev sync check-docker install-e2e test-e2e test-e2e-schema test-all +.PHONY: help lint lint-fix format format-check type-check test test-cov validate clean install-dev sync check-docker install-e2e test-e2e test-e2e-schema test-all test-integration # Default target help: @@ -22,6 +22,7 @@ help: @echo " make test-cov - Run pytest with coverage report" @echo " make test-e2e - Run E2E tests (PostgreSQL, requires Docker)" @echo " make test-e2e-schema - Run Schemathesis API schema tests" + @echo " make test-integration - Run MCP integration tests (requires running stack)" @echo " make test-all - Run all tests (unit + E2E)" @echo " make check-docker - Check if Docker is available" @echo "" @@ -82,6 +83,15 @@ test-cov: @IS_TEST=True PYTHONPATH=. uv run pytest --cov=app --cov-report=term-missing --cov-report=html -n 16 @echo "๐Ÿ“Š Coverage report generated in htmlcov/index.html" +# ============================================================================ +# Integration Testing (requires running stack: make dev) +# ============================================================================ + +test-integration: + @echo "๐Ÿงช Running MCP integration tests..." + @echo "Note: Requires running stack (make dev from project root)" + @RUN_INTEGRATION_TESTS=true IS_TEST=True PYTHONPATH=. uv run pytest tests/integration/ -v + # ============================================================================ # E2E Testing (requires Docker) # ============================================================================