You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -28,7 +28,7 @@ test-unit: ## Run the unit tests (no external dependencies required).
28
28
test: test-unit
29
29
30
30
.PHONY: test-integration
31
-
test-integration: ## Run only the Docker-based integration tests (Requires docker containers to be up and running).
31
+
test-integration: ## Run only the Docker-based integration tests (requires docker-compose services to be running, use `make run-test-services` to start them).
32
32
go test -v -tags integration ./...
33
33
34
34
.PHONY: test-cloud
@@ -43,10 +43,15 @@ run: ## Run the MCP server in stdio mode.
43
43
run-sse: ## Run the MCP server in SSE mode.
44
44
go run ./cmd/mcp-grafana --transport sse
45
45
46
+
.PHONY: run-e2e-test-services
47
+
run-e2e-test-services: ## Run the docker-compose services required for the Python E2E tests.
48
+
COMPOSE_PROFILES=mcp docker-compose up -d --build
49
+
50
+
.PHONY: run-test-services
51
+
run-test-services: ## Run the docker-compose services required for the unit and integration tests
52
+
docker-compose up -d --build
53
+
46
54
.PHONY: test-python-e2e
47
-
test-python-e2e: ## Run Python E2E tests (requires Docker, MCP server, and Python deps)
48
-
docker-compose up -d
49
-
nohup go run ./cmd/mcp-grafana -t sse > mcp.log 2>&1&
50
-
sleep 30
55
+
test-python-e2e: ## Run Python E2E tests (requires docker-compose services to be running, use `make run-e2e-test-services` to start them).
0 commit comments