Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 0102f87

Browse files
authored
Merge pull request #487 from simonswine/20230124_use_gotestsum_for_better_output
Use gotestsum
2 parents c564ea9 + 75d6c5c commit 0102f87

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ buf/lint: $(BIN)/buf
5757
$(BIN)/buf lint || true # TODO: Fix linting problems and remove the always true
5858

5959
.PHONY: go/test
60-
go/test:
61-
$(GO) test $(GO_TEST_FLAGS) ./...
60+
go/test: $(BIN)/gotestsum
61+
$(BIN)/gotestsum -- $(GO_TEST_FLAGS) ./...
6262

6363
.PHONY: build
6464
build: go/bin
@@ -253,6 +253,10 @@ $(BIN)/goreleaser: Makefile go.mod
253253
@mkdir -p $(@D)
254254
GOBIN=$(abspath $(@D)) $(GO) install github.com/goreleaser/goreleaser@v1.14.1
255255

256+
$(BIN)/gotestsum: Makefile go.mod
257+
@mkdir -p $(@D)
258+
GOBIN=$(abspath $(@D)) $(GO) install gotest.tools/gotestsum@v1.9.0
259+
256260
$(BIN)/trunk: Makefile
257261
@mkdir -p $(@D)
258262
curl -L https://trunk.io/releases/trunk -o $(@D)/trunk

0 commit comments

Comments
 (0)