mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
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:
committed by
GitHub
parent
9a2aa229ce
commit
ce42ce435e
2
.gitignore
vendored
2
.gitignore
vendored
@@ -14,7 +14,7 @@ bin
|
|||||||
coverage.txt
|
coverage.txt
|
||||||
|
|
||||||
# Ignore test reports
|
# Ignore test reports
|
||||||
reports/
|
test-*.xml
|
||||||
|
|
||||||
#
|
#
|
||||||
# GO SPECIFIC
|
# GO SPECIFIC
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -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
|
||||||
@@ -55,4 +55,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#copy artifact to shared volume
|
||||||
|
cp -r test-*.xml $ARTIFACT_DIR
|
||||||
|
|
||||||
oc logout
|
oc logout
|
||||||
|
|||||||
Reference in New Issue
Block a user