Cypress CLI adds --pass-with-no-tests
Introduced 2026-02-25 · score 0.95
HOW TO USE IT
When a Cypress run may find no spec files and CI should treat that case as success, run `cypress run --pass-with-no-tests`.
cypress run --pass-with-no-testsWHY THIS HELPS
Run Cypress in a workflow where no tests may be present and a passing command result is required.
REQUIREMENTS AND LIMITATIONS
- Version: 15.11.0
- --pass-with-no-tests: For `cypress run`, exits with success when no spec files are found.
- Prerequisite: Install Cypress as an npm module; run the command from the project root, prefixed by the package manager command (for example, `npx`).
FIRST-PARTY EVIDENCE
- https://docs.cypress.io/app/references/changelog#15-11-0
- https://docs.cypress.io/app/references/command-line
Check the installed version and the source before using it. Entry JSON