From 9e4fb05a3fe74ac4d5d745a0185ea62d8145d07c Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 30 Oct 2023 08:59:02 +0100 Subject: [PATCH] ci: use gotestsum for better test output (#179) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c8205a8..bdc465b 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,11 @@ 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 ?= $(IMPORT)/pkg/templates XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest +GOTESTSUM_PACKAGE ?= gotest.tools/gotestsum@latest XGO_VERSION := go-1.21.x XGO_TARGETS ?= linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64 @@ -65,7 +67,7 @@ generate: .PHONY: test test: - $(GO) test -v -coverprofile coverage.out $(PACKAGES) + $(GO) run $(GOTESTSUM_PACKAGE) -- -coverprofile=coverage.out $(PACKAGES) .PHONY: build build: $(DIST)/$(NAME) @@ -96,3 +98,4 @@ deps: $(GO) install $(GOFUMPT_PACKAGE) $(GO) install $(GOLANGCI_LINT_PACKAGE) $(GO) install $(XGO_PACKAGE) + $(GO) install $(GOTESTSUM_PACKAGE)