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>2021-07-27 04:32:36 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-07-27 06:44:43 +0300
commit778c290a0eed19a4203c167915d42a223ebc7c5e (patch)
tree1576d2e19f58b673f8c247be7f5a80c02b70e4f2 /Makefile.util.mk
parentf1b46a30003a9e7576e4af985a2b185041ef1756 (diff)
ci: use gotestsum for running testsuse-new-gotestsum
Changelog: other
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r--Makefile.util.mk16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk
index 3d803945..692848c7 100644
--- a/Makefile.util.mk
+++ b/Makefile.util.mk
@@ -11,15 +11,15 @@ lint: .GOPATH/.ok bin/golangci-lint
format: .GOPATH/.ok bin/golangci-lint
$Q ./bin/golangci-lint run ./... --fix --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE}
-test: .GOPATH/.ok gitlab-pages
+test: .GOPATH/.ok .GOPATH/.ok bin/gotestsum gitlab-pages
rm -f tests.out
- go test $(if $V,-v) ./... ${ARGS} 2>&1 | tee tests.out
+ ./bin/gotestsum --junitfile junit-test-report.xml --format testname -- ./... ${ARGS}
-race: .GOPATH/.ok gitlab-pages
- CGO_ENABLED=1 go test -race $(if $V,-v) $(allpackages) 2>&1 | tee tests.out
+race: .GOPATH/.ok .GOPATH/.ok bin/gotestsum gitlab-pages
+ CGO_ENABLED=1 ./bin/gotestsum --junitfile junit-test-report.xml --format testname -- -race $(if $V,-v) $(allpackages) ${ARGS}
-acceptance: .GOPATH/.ok gitlab-pages
- go test $(if $V,-v) ./test/acceptance ${ARGS} 2>&1 | tee tests.out
+acceptance: .GOPATH/.ok .GOPATH/.ok bin/gotestsum gitlab-pages
+ ./bin/gotestsum --junitfile junit-test-report.xml --format testname -- $(if $V,-v) ./test/acceptance ${ARGS}
bench: .GOPATH/.ok gitlab-pages
go test -bench=. -run=^$$ $(allpackages)
@@ -52,8 +52,8 @@ deps-check: .GOPATH/.ok
deps-download: .GOPATH/.ok
go mod download
-junit-report: .GOPATH/.ok bin/go-junit-report
- cat tests.out | ./bin/go-junit-report -set-exit-code > junit-test-report.xml
+junit-report: .GOPATH/.ok bin/gotestsum
+ ./bin/gotestsum --junitfile junit-test-report.xml --format testname
changelog:
TOKEN='$(GITLAB_PRIVATE_TOKEN)' VERSION='$(shell cat VERSION)' BRANCH='$(BRANCH)' bash ./.gitlab/scripts/changelog.sh