InterOP: enable test report generation for tests (#6307)

* enable test report generation for tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* add test-reports to gitignore

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
This commit is contained in:
Anand Kumar Singh
2022-11-17 01:52:49 +05:30
committed by GitHub
parent 9a2aa229ce
commit ce42ce435e
3 changed files with 7 additions and 4 deletions

2
.gitignore vendored
View File

@@ -14,7 +14,7 @@ bin
coverage.txt coverage.txt
# Ignore test reports # Ignore test reports
reports/ test-*.xml
# #
# GO SPECIFIC # GO SPECIFIC

View File

@@ -190,15 +190,15 @@ openshiftci-presubmit-unittests:
.PHONY: test-integration-cluster .PHONY: test-integration-cluster
test-integration-cluster: test-integration-cluster:
$(RUN_GINKGO) $(GINKGO_FLAGS) --label-filter="!nocluster" tests/integration $(RUN_GINKGO) $(GINKGO_FLAGS) --junit-report="test-integration.xml" --label-filter="!nocluster" tests/integration
.PHONY: test-integration-no-cluster .PHONY: test-integration-no-cluster
test-integration-no-cluster: test-integration-no-cluster:
$(RUN_GINKGO) $(GINKGO_FLAGS_AUTO) --label-filter=nocluster tests/integration $(RUN_GINKGO) $(GINKGO_FLAGS_AUTO) --junit-report="test-integration-nc.xml" --label-filter=nocluster tests/integration
.PHONY: test-integration .PHONY: test-integration
test-integration: test-integration-no-cluster test-integration-cluster test-integration: test-integration-no-cluster test-integration-cluster
.PHONY: test-e2e .PHONY: test-e2e
test-e2e: test-e2e:
$(RUN_GINKGO) $(GINKGO_FLAGS) tests/e2escenarios $(RUN_GINKGO) $(GINKGO_FLAGS) --junit-report="test-e2e.xml" tests/e2escenarios

View File

@@ -55,4 +55,7 @@ else
fi fi
fi fi
#copy artifact to shared volume
cp -r test-*.xml $ARTIFACT_DIR
oc logout oc logout