Skip to content

docs(ci): make the saved-list gate fail on zero tests - #740

Merged
zeshi-du merged 3 commits into
TestSprite:mainfrom
rudycelekli:docs/strict-list-gate
Nov 24, 2026
Merged

zeshi-du merged 3 commits into
TestSprite:mainfrom
rudycelekli:docs/strict-list-gate

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

The curated-list CI recipe can succeed after running zero tests. In 0.17 the CLI exits 0 and writes a zero-test JUnit file for an empty saved list. The CI recipe now uses the existing JSON guard plus the CLI verdict, so it preserves JUnit and fails if no tests ran or a member was skipped.

Related to #458. This documents current behavior.

Verified with the built CLI against an isolated mock API. The guard rejected the actual empty receipt and a skipped fixture, and accepted a nonempty completed fixture.

Summary by CodeRabbit

  • Documentation
    • Updated the curated test-list CI example to capture JSON output and fail if the run fails, the summary contains no tests, or any tests are skipped.
    • Clarified that an empty list can still succeed and produce a zero-test JUnit report.
    • Documented how the result checks and exit-status handling work, and noted the jq requirement.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The documentation updates the curated test-list CI example. The example saves JSON output and checks that the run has at least one test and no skipped tests.

Changes

Curated Test-List CI Example

Layer / File(s) Summary
Document the test-list CI gate
DOCUMENTATION.md
The example saves JSON output and uses jq to check for at least one test and no skipped tests. The text explains empty-list behavior, failure-status handling, and the jq requirement.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to 03466

The updated CI example makes the saved-list step fail when no tests ran or a list member was skipped. It is documentation only and carries no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs(ci): make the saved-list gate fail on zero tests" matches the main change. The summary says the curated-list example now checks for at least one test and no skipped tests, and exits wi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs(ci): make the saved-list gate fail on zero tests" matches the main change. The summary says the curated-list example now checks for at least one test and no skipped tests, and exits with failure otherwise. The objectives describe the same goal: failing when no tests ran or a list member was skipped. The title is specific and short, and it uses a conventional commit prefix.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e36596a and 03466b9.

Files selected for processing: 1

  • DOCUMENTATION.md

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@zeshi-du
zeshi-du merged commit fffd3b6 into TestSprite:main Nov 24, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants