@@ -56,9 +56,9 @@ if [ "${USE_GO_MODULES:-}" == "false" ]; then
5656 go get -u -v github.com/axw/gocov/gocov
5757 go get -u -v github.com/AlekSi/gocov-xml
5858else
59- go install -v github.com/axw/gocov/gocov@latest
60- go install -v github.com/AlekSi/gocov-xml@latest
61- go install -v gotest.tools/gotestsum@latest
59+ go install github.com/axw/gocov/gocov@latest
60+ go install github.com/AlekSi/gocov-xml@latest
61+ go install gotest.tools/gotestsum@latest
6262fi
6363
6464if [ " ${SG_TEST_X509:- } " == " true" -a " ${COUCHBASE_SERVER_PROTOCOL} " != " couchbases" ]; then
106106
107107if [ " ${RUN_WALRUS} " == " true" ]; then
108108 # EE
109- gotestsum --junitfile verbose_unit_ee.xml --format standard-verbose -- -coverprofile=coverage_walrus_ee.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode,cb_sg_enterprise $GO_TEST_FLAGS github.com/couchbase/sync_gateway/ ${TARGET_PACKAGE} > verbose_unit_ee.out 2>&1 | true
109+ gotestsum --junitfile verbose_unit_ee.xml --junit-project-name rosmar-EE -- format standard-verbose -- -coverprofile=coverage_walrus_ee.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode,cb_sg_enterprise $GO_TEST_FLAGS ${TARGET_PACKAGE} > verbose_unit_ee.out 2>&1 | true
110110 # CE
111- gotestsum --junitfile verbose_unit_ce.xml --format standard-verbose -- - coverprofile=coverage_walrus_ce.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode $GO_TEST_FLAGS github.com/couchbase/sync_gateway/ ${TARGET_PACKAGE} > verbose_unit_ce.out 2>&1 | true
111+ gotestsum --junitfile verbose_unit_ce.xml --format standard-verbose --junit-project-name rosmar-CE -- - coverprofile=coverage_walrus_ce.out -coverpkg=github.com/couchbase/sync_gateway/... -tags cb_sg_devmode $GO_TEST_FLAGS ${TARGET_PACKAGE} > verbose_unit_ce.out 2>&1 | true
112112fi
113113
114114# Run CBS
137137 GO_TEST_FLAGS=" ${GO_TEST_FLAGS} -tags cb_sg_devmode"
138138fi
139139
140- gotestsum --junitfile=" ${INT_LOG_FILE_NAME} .xml" --format standard-verbose -- ${GO_TEST_FLAGS} -coverprofile=coverage_int.out -coverpkg=github.com/couchbase/sync_gateway/... github.com/couchbase/sync_gateway/ ${TARGET_PACKAGE} 2>&1 | stdbuf -oL tee " ${INT_LOG_FILE_NAME} .out" | stdbuf -oL grep -a -E ' (--- (FAIL|PASS|SKIP):|github.com/couchbase/sync_gateway(/.+)?\t|TEST: |panic: )'
140+ gotestsum --junitfile=" ${INT_LOG_FILE_NAME} .xml" --junit-project-name -- format standard-verbose -- ${GO_TEST_FLAGS} -coverprofile=coverage_int.out -coverpkg=github.com/couchbase/sync_gateway/... ${TARGET_PACKAGE} 2>&1 | stdbuf -oL tee " ${INT_LOG_FILE_NAME} .out" | stdbuf -oL grep -a -E ' (--- (FAIL|PASS|SKIP):|github.com/couchbase/sync_gateway(/.+)?\t|TEST: |panic: )'
141141if [ " ${PIPESTATUS[0]} " -ne " 0" ]; then # If test exit code is not 0 (failed)
142142 echo " Go test failed! Parsing logs to find cause..."
143143 TEST_FAILED=true
0 commit comments