From b2a3ac60e07c2ea1d923a3a922db90bf2f74af34 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Mon, 5 Jan 2026 01:02:16 +0100 Subject: [PATCH] feat: add integration testing target to Makefile - Introduced `test-integration` command for MCP integration tests. - Expanded help section with details about running integration tests. - Improved Makefile's testing capabilities for enhanced developer workflows. --- backend/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) # ============================================================================