Skip to content

Commit cec64a2

Browse files
committed
Add junit output to e2e tests
1 parent dde415b commit cec64a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,16 @@ $(E2E_NO_ARTIFACT_TEMPLATES_DIR)/cluster-template.yaml: $(E2E_KUSTOMIZE_DIR)/wit
170170
$(E2E_NO_ARTIFACT_TEMPLATES_DIR)/cluster-template-%.yaml: $(E2E_KUSTOMIZE_DIR)/% $(KUSTOMIZE) FORCE
171171
$(KUSTOMIZE) build "$<" > "$@"
172172

173-
e2e-prerequisites: $(GINKGO) e2e-templates e2e-image test-e2e-image-prerequisites ## Build all artifacts required by e2e tests
173+
e2e-prerequisites: e2e-templates e2e-image test-e2e-image-prerequisites ## Build all artifacts required by e2e tests
174174

175175
# Can be run manually, e.g. via:
176176
# export OPENSTACK_CLOUD_YAML_FILE="$(pwd)/clouds.yaml"
177177
# E2E_GINKGO_ARGS="-stream -focus='default'" E2E_ARGS="-use-existing-cluster='true'" make test-e2e
178178
E2E_GINKGO_ARGS ?=
179179
.PHONY: test-e2e ## Run e2e tests using clusterctl
180-
test-e2e: e2e-prerequisites ## Run e2e tests
180+
test-e2e: $(GINKGO) e2e-prerequisites ## Run e2e tests
181181
time $(GINKGO) -fail-fast -trace -timeout=3h -show-node-events -v -tags=e2e -nodes=$(E2E_GINKGO_PARALLEL) \
182+
--output-dir="$(ARTIFACTS)" --junit-report="junit.e2e_suite.1.xml" \
182183
-focus="$(E2E_GINKGO_FOCUS)" $(_SKIP_ARGS) $(E2E_GINKGO_ARGS) ./test/e2e/suites/e2e/... -- \
183184
-config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" \
184185
-data-folder="$(E2E_DATA_DIR)" $(E2E_ARGS)
@@ -200,7 +201,7 @@ CONFORMANCE_E2E_ARGS ?= -kubetest.config-file=$(KUBETEST_CONF_PATH)
200201
CONFORMANCE_E2E_ARGS += $(E2E_ARGS)
201202
CONFORMANCE_GINKGO_ARGS ?= -stream
202203
.PHONY: test-conformance
203-
test-conformance: e2e-prerequisites ## Run clusterctl based conformance test on workload cluster (requires Docker).
204+
test-conformance: $(GINKGO) e2e-prerequisites ## Run clusterctl based conformance test on workload cluster (requires Docker).
204205
time $(GINKGO) -trace -show-node-events -v -tags=e2e -focus="conformance" $(CONFORMANCE_GINKGO_ARGS) ./test/e2e/suites/conformance/... -- -config-path="$(E2E_CONF_PATH)" -artifacts-folder="$(ARTIFACTS)" --data-folder="$(E2E_DATA_DIR)" $(CONFORMANCE_E2E_ARGS)
205206

206207
test-conformance-fast: ## Run clusterctl based conformance test on workload cluster (requires Docker) using a subset of the conformance suite in parallel.

0 commit comments

Comments
 (0)