Home / Companies / Cypress / Blog / Post Details
Content Deep Dive

Fix Cypress CI failures caused by no spec files found

Blog post from Cypress

Post Details
Company
Date Published
Author
-
Word Count
847
Language
English
Hacker News Points
-
Summary

Cypress 15.11.0 introduces a new CLI flag, --pass-with-no-tests, which allows CI pipelines to pass even if no spec files are found during a test run, addressing a common frustration where builds fail due to the absence of test files. This feature is particularly useful in workflows that intentionally result in no test files, such as dynamic spec filtering with cypress-grep or test quarantine setups. However, users are advised to ensure that a zero-spec result is a valid outcome in their workflow before using this flag, as it might otherwise mask configuration issues that require attention. In addition to this flag, the release also includes other updates, such as improved support for React SSR hydration mismatches, Brotli compression handling, and enhanced CI provider metadata capture in Cypress Cloud.