Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found

Retry failed test cases

The retry feature improves stability of test execution and reduces test failures. Ensure to run your xctestrun build with the retry feature enabled.

You can enable the retry feature by setting the Test Repetition Mode flag in the XCTestPlan configuration. The flag can have the following values:

  • Until Failure: The test cases continue to execute until a failure occurs.

  • Retry on Failure: The test case where the failure occured is run again. This mechanism avoids failures due to device disconnection.

Retry Failed Test Cases

  • Up Until Maximum Repetitions: You can retry running the test cases a certain number of times, as specified in the Maximum Test Repetitions flag.

Set number of retries

  • None: The test cases are not run again in case of failure.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle