Company
Date Published
Author
The Cypress
Word count
436
Language
English
Hacker News points
None

Summary

Cypress 5.0 introduces a new feature, test retries, which automatically retries failed tests before marking them as failed, addressing common issues such as intermittent failures due to integration dependencies or network issues during end-to-end test runs. By default, test retries are disabled, but users can easily enable and configure them in the cypress.json file, specifying the number of retries for both "cypress run" and "cypress open" modes. The feature allows different retry configurations for each mode, ensuring flexibility in testing scenarios. Importantly, tests retried using the --record flag during "cypress run" are not counted as additional test recordings in billing, maintaining cost-efficiency for users. Further details and configuration options can be explored in Cypress's official Test Retries Guide.