From 310bc7456f6a6f966c61530a196cadda38ca0b5a Mon Sep 17 00:00:00 2001 From: Tanmay Sardesai Date: Wed, 11 Feb 2026 16:08:33 -0800 Subject: [PATCH] chore: split e2e tests into separate invocation for real-time output `go test ./...` buffers each package's output until the package completes. Since e2e tests take ~2 minutes (testcontainers), nothing is visible until they all finish. Running e2e as a separate `go test` invocation makes it the only active package, so output streams in real time. Co-Authored-By: Claude Opus 4.6 --- server/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/Makefile b/server/Makefile index 733c5b7d..8e2667be 100644 --- a/server/Makefile +++ b/server/Makefile @@ -33,10 +33,14 @@ build: | $(BIN_DIR) dev: build $(RECORDING_DIR) OUTPUT_DIR=$(RECORDING_DIR) DISPLAY_NUM=$(DISPLAY_NUM) ./bin/api +# we run the e2e tests separately so that we can see the logs from the e2e tests as they run instead of waiting for all tests to complete test: go vet ./... - # E2E tests use dynamic ports via TestContainer, enabling parallel execution - go test -v -race ./... + go test -v -race $$(go list ./... | grep -v /e2e$$) + @echo "" + @echo "=== Running e2e tests (testcontainers — this may take a few minutes) ===" + @echo "" + go test -v -race ./e2e/ clean: @rm -rf $(BIN_DIR)