This is an automated email from the ASF dual-hosted git repository.
HoustonPutman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 2dc4467 Add e2e test output reports to test output dir
2dc4467 is described below
commit 2dc446711054d9136a396077a29e54ed6862991a
Author: Houston Putman <[email protected]>
AuthorDate: Wed Nov 4 13:02:38 2026 -0800
Add e2e test output reports to test output dir
---
dev-docs/e2e-testing.md | 4 ++++
tests/scripts/manage_e2e_tests.sh | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/dev-docs/e2e-testing.md b/dev-docs/e2e-testing.md
index ae10f90..8e6664a 100644
--- a/dev-docs/e2e-testing.md
+++ b/dev-docs/e2e-testing.md
@@ -119,6 +119,10 @@ This way the tests can be re-run using the same cluster
that they failed on prev
Use the [environment variable
`REUSE_KIND_CLUSTER_IF_EXISTS=false`](#customizing-the-test-environment) to
re-create the KinD cluster,
instead of reusing the existing one.
+Debugging output for each spec (pod logs, events, resource status and the
operator log) is written to `tests/e2e/output/`.
+Ginkgo also writes `junit.xml` and `report.json` to that directory, containing
the failure messages of the whole run.
+Since the directory is recreated at the start of every run, copy these files
elsewhere if you need to keep them.
+
# IntelliJ & GoLand Testing
The e2e-tests can be tested via IDEA, just as the unit tests can,
diff --git a/tests/scripts/manage_e2e_tests.sh
b/tests/scripts/manage_e2e_tests.sh
index 6c73326..4b2d0c4 100755
--- a/tests/scripts/manage_e2e_tests.sh
+++ b/tests/scripts/manage_e2e_tests.sh
@@ -146,6 +146,10 @@ function run_tests() {
GINKGO_PARAMS+=("${RAW_GINKGO[@]}")
fi
+ # Write machine-readable reports next to the per-test debug output
(tests/e2e/output is gitignored and
+ # recreated by the suite before the specs run, so the reports are written
once the suite has finished)
+ GINKGO_PARAMS+=(--output-dir "${REPO_DIR}/tests/e2e/output" --junit-report
junit.xml --json-report report.json)
+
GINKGO_EDITOR_INTEGRATION=true ginkgo --randomize-all "${GINKGO_PARAMS[@]}"
"${REPO_DIR}"/tests/e2e/...
printf "\n********************\n"