From 691d286cf78ab9679561b68940bf4368420ba77f Mon Sep 17 00:00:00 2001 From: Hongyi Zhang Date: Fri, 19 Jun 2020 21:26:25 +0000 Subject: [PATCH] add junit report to build (#7599) * add junit report * remove istio.test.env argument --- tests/tests.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/tests.mk b/tests/tests.mk index 6d622a2b59..08660139d1 100644 --- a/tests/tests.mk +++ b/tests/tests.mk @@ -2,9 +2,12 @@ export TIMEOUT ?= 30m # gocache disabled by -count=1 # tests in different packages forced to be sequential by -p=1 -doc.test: init - @${GO} test ${REPO_ROOT}/tests/setup/... -v -timeout=${TIMEOUT} -count=1 -p=1 \ - -istio.test.env=kube -istio.test.hub=$(HUB) -istio.test.tag=$(TAG) +doc.test: init | $(JUNIT_REPORT) + @${GO} test ${REPO_ROOT}/tests/setup/... \ + -v -timeout=${TIMEOUT} -count=1 -p=1 \ + -istio.test.hub=$(HUB) \ + -istio.test.tag=$(TAG) \ + 2>&1 | tee >($(JUNIT_REPORT) > $(JUNIT_OUT)) doc.test.help: @echo "The command \"make doc.test\" accepts three optional environment variables."