You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh "make test dockerImage=marklogic-centos/marklogic-server-centos:${dockerVersion} saveOutput=true"
200
+
sh "go install gotest.tools/gotestsum@latest; make test dockerImage=marklogic-centos/marklogic-server-centos:${dockerVersion} saveOutput=true path=./bin/"
$(if $(path),$(path),)golangci-lint run $(if $(saveOutput),> test-lint-output.txt,)
73
+
$(if $(path),$(path),)golangci-lint run $(if $(saveOutput),> test-lint-output.txt,)
74
74
75
75
## ---------- Testing Tasks ----------
76
76
@@ -81,6 +81,7 @@ lint:
81
81
## Options:
82
82
## * [dockerImage] optional. default is marklogicdb/marklogic-db:latest. Example: dockerImage=marklogic-centos/marklogic-server-centos:10-internal
83
83
## * [saveOutput] optional. Save the output to a xml file. Example: saveOutput=true
84
+
## * [path] optional. path to gotestsum executable. Example: path=/home/builder/go/bin/
84
85
.PHONY: e2e-test
85
86
e2e-test: prepare
86
87
@echo "=====Installing minikube cluster"
@@ -90,7 +91,7 @@ e2e-test: prepare
90
91
minikube image load $(dockerImage)
91
92
92
93
@echo "=====Running e2e tests"
93
-
cd test; $(if $(saveOutput),gotestsum --junitfile test_results/e2e-tests.xml ./e2e/... -count=1, go test -v -count=1 ./test/e2e/...)
94
+
cd test; $(if $(saveOutput),$(if $(path),$(path),)gotestsum --junitfile test_results/e2e-tests.xml ./e2e/... -count=1, go test -v -count=1 ./test/e2e/...)
0 commit comments