Skip to content

Commit d891113

Browse files
committed
fix: make tee for tests
1 parent 6e02241 commit d891113

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ LDFLAGS := -ldflags="-s -w -X \"github.com/$(OWNER)/$(NAME)/cmd.Version=$(VERSIO
99
.PHONY: test test_ci tidy install buildprep build buildmac buildwin
1010

1111
test: test_prereq
12-
go test ./... -v -mod=readonly -coverprofile=.coverage/out -race > .coverage/test.out ; \
12+
go test ./... -v -mod=readonly -coverprofile=.coverage/out -race | tee .coverage/test.out ; \
1313
cat .coverage/test.out | go-junit-report > .coverage/report-junit.xml ; \
14-
gocov convert .coverage/out | gocov-xml > .coverage/report-cobertura.xml ; \
15-
cat .coverage/test.out
14+
gocov convert .coverage/out | gocov-xml > .coverage/report-cobertura.xml
1615

1716
test_ci:
1817
go test ./... -mod=readonly

0 commit comments

Comments
 (0)