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
8 changes: 6 additions & 2 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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$$)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filtered package list can fail test target

Low Severity

go test -v -race $$(go list ./... | grep -v /e2e$$) depends on grep -v returning matches. If every listed package is filtered out, grep exits non-zero and make test stops before running ./e2e/, even though tests may be valid. This introduces a brittle failure mode in server/Makefile.

Fix in Cursor Fix in Web

@echo ""
@echo "=== Running e2e tests (testcontainers — this may take a few minutes) ==="
@echo ""
go test -v -race ./e2e/

clean:
@rm -rf $(BIN_DIR)
Expand Down
Loading