Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build lint test test-unit test-integration test-container-proxy test-all test-serena test-serena-gateway coverage test-ci format clean install release help agent-finished
.PHONY: build lint test test-unit test-race test-integration test-container-proxy test-all test-serena test-serena-gateway coverage test-ci format clean install release help agent-finished

# Default target
.DEFAULT_GOAL := help
Expand Down Expand Up @@ -60,6 +60,14 @@ test-integration:
fi
@go test -v ./test/integration/...

# Run unit tests with race detection (catches concurrent data races)
# The MCP Gateway is a concurrent server; use this to validate thread safety.
test-race:
@echo "Running unit tests with race detection..."
@go mod tidy
@go test -race -timeout=5m ./internal/...
@echo "Race detection tests complete!"

# Run container proxy integration tests (requires Docker and gh CLI)
test-container-proxy:
@echo "Running container proxy integration tests..."
Expand Down Expand Up @@ -305,6 +313,7 @@ help:
@echo " lint - Run all linters (go vet, gofmt check, golangci-lint)"
@echo " test - Run unit tests (no build required)"
@echo " test-unit - Run unit tests (no build required)"
@echo " test-race - Run unit tests with race detection (catches concurrent data races)"
@echo " test-integration - Run binary integration tests (requires built binary)"
@echo " test-all - Run all tests (unit + integration)"
@echo " test-serena - Run Serena MCP Server tests (direct connection)"
Expand Down
Loading