From 58ed6a8f30b323abf162835e16a07d05ed88b982 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 29 Oct 2023 16:04:58 +0100 Subject: [PATCH] ci: use gotestsum for better test output (#33) --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5c4b491..f93fec2 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ SOURCES ?= $(shell find . -name "*.go" -type f) GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@$(GOFUMPT_PACKAGE_VERSION) GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_PACKAGE_VERSION) XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest +GOTESTSUM_PACKAGE ?= gotest.tools/gotestsum@latest GENERATE ?= XGO_VERSION := go-1.21.x @@ -68,7 +69,7 @@ generate: .PHONY: test test: - $(GO) test -v -coverprofile coverage.out $(PACKAGES) + $(GO) run $(GOTESTSUM_PACKAGE) --no-color=false -- -coverprofile=coverage.out $(PACKAGES) .PHONY: build build: $(DIST)/$(EXECUTABLE) @@ -99,3 +100,4 @@ deps: $(GO) install $(GOFUMPT_PACKAGE) $(GO) install $(GOLANGCI_LINT_PACKAGE) $(GO) install $(XGO_PACKAGE) + $(GO) install $(GOTESTSUM_PACKAGE)