Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-12-07 07:40:45 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-12-07 07:40:45 +0300
commit39bd2710f86f90a0a6765fbd2d8c07e2493ad5e5 (patch)
tree1560b11970faa8a34ac299436bd96f72c90cc60b /Makefile.util.mk
parent0a1587752423d5851a8d1c09dc55bb212cb83374 (diff)
Use junit report
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r--Makefile.util.mk6
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