Skip to content

Commit ce42ce4

Browse files
authored
InterOP: enable test report generation for tests (#6307)
* enable test report generation for tests Signed-off-by: anandrkskd <[email protected]> * add test-reports to gitignore Signed-off-by: anandrkskd <[email protected]> Signed-off-by: anandrkskd <[email protected]>
1 parent 9a2aa22 commit ce42ce4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bin
1414
coverage.txt
1515

1616
# Ignore test reports
17-
reports/
17+
test-*.xml
1818

1919
#
2020
# GO SPECIFIC

Diff for: Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ openshiftci-presubmit-unittests:
190190

191191
.PHONY: test-integration-cluster
192192
test-integration-cluster:
193-
$(RUN_GINKGO) $(GINKGO_FLAGS) --label-filter="!nocluster" tests/integration
193+
$(RUN_GINKGO) $(GINKGO_FLAGS) --junit-report="test-integration.xml" --label-filter="!nocluster" tests/integration
194194

195195
.PHONY: test-integration-no-cluster
196196
test-integration-no-cluster:
197-
$(RUN_GINKGO) $(GINKGO_FLAGS_AUTO) --label-filter=nocluster tests/integration
197+
$(RUN_GINKGO) $(GINKGO_FLAGS_AUTO) --junit-report="test-integration-nc.xml" --label-filter=nocluster tests/integration
198198

199199
.PHONY: test-integration
200200
test-integration: test-integration-no-cluster test-integration-cluster
201201

202202
.PHONY: test-e2e
203203
test-e2e:
204-
$(RUN_GINKGO) $(GINKGO_FLAGS) tests/e2escenarios
204+
$(RUN_GINKGO) $(GINKGO_FLAGS) --junit-report="test-e2e.xml" tests/e2escenarios

Diff for: scripts/openshiftci-presubmit-all-tests.sh

+3
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ else
5555
fi
5656
fi
5757

58+
#copy artifact to shared volume
59+
cp -r test-*.xml $ARTIFACT_DIR
60+
5861
oc logout

0 commit comments

Comments
 (0)