Since the update to Xcode 9, the Xcode test step compile the project twice.
This is the message I can read at the end of the first build attempt
Automatic retry reason found in log: Early unexpected exit, operation never finished bootstrapping - no restart will be attemptede
isAutomaticRetryOnReason=true - retryingâŚ
Deleting existing xcpretty output: /Users/vagrant/deploy/xcode-test-results-Saks-Development.htmle
Running the testsâŚe
Environment:
On Bitrise.io1, stack: Xcode 9.0.x, on macOS 10.12 (Sierra)
Step: xcode-test @ 1.18.7
Reproducibility
Does a âRebuildâ help? (You can trigger a rebuild from the Buildâs page, by clicking the âRebuildâ button in the top right corner of a finished build) : NO
Hi @glanza,
the step has an input: (Experimental) Rerun test, when it fails?, if you set this input to yes the step will rerun the test if the first attempt failed with specific errors.
If one of the mentioned errors appear in the log, most of the times rerunning the test will solve the issue.
If you want to avoid from this behavious set the (Experimental) Rerun test, when it fails? inputâs value to no.
@glanza mi previous answer was not correct, sorry about that!
The step input: (Experimental) Rerun test, when it fails? is not related to the Automatic retry reasons.
We designed the step, to automatically rerun the test, it it failed because of an issue, which is not related to the test run. We collect these issues and we call it to: Automatic retry reasons, these issues are related to the ios simulator (may its not booted yet, or not setup correctly yet). You can not trun off this retry, since your test would fail, even if its not because of your test casesâŚ
Using (Experimental) Rerun test, when it fails? step input you can control if the step should rerun the test if it failed with any issue or not.