Update test commands to run Ginkgo unit tests in verbose mode. Modify README and Taskfile to reflect changes in test execution and improve clarity on running unit tests.

This commit is contained in:
windyboy
2025-11-16 10:08:26 +08:00
parent 487a0acb48
commit 69fc8cf337
3 changed files with 8 additions and 13 deletions
+3 -8
View File
@@ -38,15 +38,10 @@ run-local: ## Run receiver directly via go run
@GO_ENV=$(GO_ENV) go run $(CMD) listen
.PHONY: test
test: ## Run unit tests (Ginkgo)
test: ## Run unit tests (Ginkgo, verbose)
@command -v ginkgo >/dev/null || (echo "Please install ginkgo (go install github.com/onsi/ginkgo/v2/ginkgo@latest)"; exit 1)
@echo "Running Ginkgo unit test suites..."
@ginkgo -r ./cmd ./internal
.PHONY: test-int
test-int: ## Run integration tests (requires Docker)
@echo "Running integration tests..."
@GO_ENV=$(GO_ENV) go test -tags=integration ./test/integration/...
@echo "Running Ginkgo unit test suites (verbose)..."
@ginkgo -r -v ./...
.PHONY: test-int
test-int: ## Run integration tests (requires Docker)