From 39bd2710f86f90a0a6765fbd2d8c07e2493ad5e5 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Mon, 7 Dec 2020 15:40:45 +1100 Subject: Use junit report --- Makefile.util.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.util.mk') diff --git a/Makefile.util.mk b/Makefile.util.mk index ae78673a..1294b442 100644 --- a/Makefile.util.mk +++ b/Makefile.util.mk @@ -10,7 +10,8 @@ lint: .GOPATH/.ok bin/golangci-lint $Q ./bin/golangci-lint run ./... --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE} test: .GOPATH/.ok gitlab-pages - go test $(if $V,-v) $(allpackages) + rm tests.out || true + go test $(if $V,-v) $(allpackages) 2>&1 | tee tests.out race: .GOPATH/.ok gitlab-pages CGO_ENABLED=1 go test -race $(if $V,-v) $(allpackages) @@ -55,3 +56,6 @@ deps-check: .GOPATH/.ok deps-download: .GOPATH/.ok go mod download + +junit-report: bin/go-junit-report + cat tests.out | ./bin/go-junit-report -set-exit-code > junit-test-report.xml -- cgit v1.2.3