@@ -31,7 +31,7 @@ HAS_GIT := $(shell command -v git;)
31
31
HAS_GOLANGCI_LINT := $(shell command -v golangci-lint;)
32
32
HAS_CURL: =$(shell command -v curl;)
33
33
HAS_MOCKGEN: =$(shell command -v mockgen;)
34
- HAS_GOTESTFMT : =$(shell command -v gotestfmt ;)
34
+ HAS_GOTESTSUM : =$(shell command -v gotestsum ;)
35
35
HAS_FIELDALIGNMENT: =$(shell command -v fieldalignment;)
36
36
37
37
.DEFAULT_GOAL := code/lint
@@ -96,11 +96,11 @@ endif
96
96
97
97
.PHONY : test/all
98
98
test/all : setup/dep/install
99
- $( GO ) test -- tags=unit,integration -v -coverpkg=./pkg/... -covermode=count -coverprofile=c.out.tmp ./pkg/...
99
+ gotestsum --junitfile junit.xml --format testname --format-hide-empty-pkg -- -- tags=unit,integration -coverpkg=./pkg/... -covermode=count -coverprofile=c.out.tmp ./pkg/...
100
100
101
- .PHONY : test/all/gotestfmt
102
- test/all/gotestfmt : setup/dep/install
103
- $(GO ) test -json -- tags=unit,integration -v -coverpkg=./pkg/... -covermode=count -coverprofile=c.out.tmp ./pkg/... | tee /tmp/gotest.log | gotestfmt
101
+ .PHONY : test/all/original
102
+ test/all/original : setup/dep/install
103
+ $(GO ) test -- tags=unit,integration -v -coverpkg=./pkg/... -covermode=count -coverprofile=c.out.tmp ./pkg/...
104
104
105
105
.PHONY : test/unit
106
106
test/unit : setup/dep/install
@@ -184,9 +184,9 @@ ifndef HAS_MOCKGEN
184
184
@echo "=> Installing mockgen tool"
185
185
go install github.com/golang/mock/mockgen@v1.6.0
186
186
endif
187
- ifndef HAS_GOTESTFMT
188
- @echo "=> Installing gotestfmt tool"
189
- go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4 .1
187
+ ifndef HAS_GOTESTSUM
188
+ @echo "=> Installing gotestsum tool"
189
+ go install gotest.tools/gotestsum@v1.10 .1
190
190
endif
191
191
ifndef HAS_FIELDALIGNMENT
192
192
@echo "=> Installing fieldalignment tool"
0 commit comments