diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-12-07 07:40:45 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-12-07 07:40:45 +0300 |
commit | 39bd2710f86f90a0a6765fbd2d8c07e2493ad5e5 (patch) | |
tree | 1560b11970faa8a34ac299436bd96f72c90cc60b /Makefile.util.mk | |
parent | 0a1587752423d5851a8d1c09dc55bb212cb83374 (diff) |
Use junit report
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r-- | Makefile.util.mk | 6 |
1 files changed, 5 insertions, 1 deletions
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 |