Test orchestration on Espresso
Learn how test orchestration strategies on App Automate control which Espresso tests run in a build and how they run.
As test suites scale, running every test on every build can slow down release cycles and create CI bottlenecks. To maintain fast and reliable delivery, it becomes essential to optimize what tests run and how without compromising confidence.
Test orchestration determines which tests run and defines how those tests are executed. For Espresso, you enable each strategy with parameters in the builds REST API.
Supported strategies
App Automate supports the following test orchestration strategies for Espresso tests:
| Strategy | Description |
|---|---|
| Auto rerun | Immediately retries failed tests for a configurable number of attempts. |
| Fail fast | Stops the execution of a test suite once a failure threshold is reached. |
| Run failures only | Runs only the tests that failed in the previous build. |
Learn how to combine different orchestration strategies.
Supported orchestration strategy combinations
You can combine different orchestration strategies to optimize your testing workflow for speed, stability, or efficiency. The following table highlights the most effective combinations for common workflows:
| Combination | Use case |
|---|---|
| Run failures only + Fail fast | Use for rapid debugging to verify fixes for previous failures and stop the build if those critical tests still fail. |
| Auto rerun + Fail fast | Automatically retries failed tests and aborts the build if failures persist beyond the configured threshold of allowable failures. |
Auto rerun and fail fast can be combined with any other test orchestration strategy. Fail fast counts a test as failed only after its automatic reruns are exhausted, and run failures only records the final outcome of each test after any reruns.
The list of supported strategies is actively being expanded. If you have a requirement for a specific test orchestration feature that isn’t listed, we encourage you to submit a feature request by contacting BrowserStack support.
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
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!