From e36596a7fafa3f8b3102eafa7097950ba2682395 Mon Sep 17 00:00:00 2001 From: Rudy Celekli Date: Sat, 21 Nov 2026 03:40:37 -0500 Subject: [PATCH 1/2] docs(ci): make the saved-list gate fail on zero tests --- DOCUMENTATION.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 7a09553d..2a13436e 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -1314,11 +1314,12 @@ Archive any requested reports with a step that also runs after failure (`if: alw Use `ci run` for one project's tests. A saved test list lets you gate a selected set of cases across several projects and pin each project's environment. ```bash -testsprite run --testlist "$LIST_ID" --wait \ - --report junit --report-file testsprite-junit.xml +testsprite run --testlist "$LIST_ID" --wait --output json \ + --report junit --report-file testsprite-junit.xml > testsprite-run.json && + jq -e '.summary.total > 0 and .summary.skipped == 0' testsprite-run.json ``` -A test list is the addressable unit for a mixed FE/BE, multi-project CI gate; each project runs against its configured environment. See [Test lists (`testlist`)](#test-lists-testlist). +In 0.17, an empty saved list can exit successfully and produce a zero-test JUnit report. The JSON check makes the CI step fail when the list runs no tests or leaves any members undispatched. It requires `jq` on the runner. Each project runs against its configured environment. See [Test lists (`testlist`)](#test-lists-testlist). ### Gating on the outcome From 03466b92406482a6fed8b7838b62a3fe42ec4c20 Mon Sep 17 00:00:00 2001 From: Zeshi Du Date: Mon, 23 Nov 2026 18:53:13 -0800 Subject: [PATCH 2/2] docs(ci): stop the saved-list step when the run or the check fails --- DOCUMENTATION.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 155aa57b..9d172133 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -1320,10 +1320,10 @@ Use `ci run` for one project's tests. A saved test list lets you gate a selected ```bash testsprite run --testlist "$LIST_ID" --wait --output json \ --report junit --report-file testsprite-junit.xml > testsprite-run.json && - jq -e '.summary.total > 0 and .summary.skipped == 0' testsprite-run.json + jq -e '.summary.total > 0 and .summary.skipped == 0' testsprite-run.json || exit $? ``` -In 0.17, an empty saved list can exit successfully and produce a zero-test JUnit report. The JSON check makes the CI step fail when the list runs no tests or leaves any members undispatched. It requires `jq` on the runner. Each project runs against its configured environment. See [Test lists (`testlist`)](#test-lists-testlist). +In 0.17, an empty saved list can exit successfully and produce a zero-test JUnit report. The JSON check makes the CI step fail when the list runs no tests or leaves any members undispatched. The trailing `|| exit $?` stops the step on a failed run or a failed check even when more commands follow. It requires `jq` on the runner. Each project runs against its configured environment. See [Test lists (`testlist`)](#test-lists-testlist). ### Gating on the outcome