retry
- Type:
number - Default:
0 - CLI:
--retry <times>
Retry the test specific number of times if it fails. This is useful for some flaky or non-deterministic test failures.
Example
You can get two retries by setting retry:2 when the test fails:
When the test has retried, you may get the following logs:
- success:
- or failure: