Smart Orchestration

The Cypress Dashboard provides four distinct Smart Orchestration features for use in CI to speed up test runs, accelerate debugging workflows, and reduce costs:

  • Parallelization: Reduce test duration by running multiple test spec files simultaneously across available CI machines.
  • Load Balancing: Optimize CI resources and minimize test duration by intelligently prioritizing running of test spec files during parallelization.
  • Run failed specs first: Quickly verify that your latest changes fixed a build by prioritizing the specs that failed in the previous Cypress run.
  • Cancel test run when a test fails: Save on CI resources by automatically canceling a Cypress run upon the first test failure.

Run failed specs first

It is often helpful to be aware of test failures earlier within a CI test run so that debugging and iterations can resume and progress much faster. Being able to catch issues sooner within the CI process can save valuable time in troubleshooting failures and deploying fixes.

Toggle running of failed specs first

Controlling running of failed specs first is a Smart Orchestration feature that is managed within a project's settings.

To enable or disable this feature:

  1. Select the desired project within Projects view to visit its Dashboard.
  2. Click "Project Settings" with the right-hand sidebar.
  3. Scroll to the Smart Orchestration section within Project Settings page.
  4. Toggle "Run failed specs first."
Enable running of failed specs first

Cancel test run when a test fails

Continuous Integration (CI) pipelines are typically costly processes that can demand significant compute time. When a test failure occurs in CI, it often does not make sense to continue running the remainder of a test suite since the process has to start again upon merging of subsequent fixes and other code changes.

Toggle cancellation of test runs upon first failure

Controlling cancellation of test runs upon the first failed test is a Smart Orchestration feature that is managed within a project's settings.

To enable or disable this feature:

  1. Select the desired project within Projects view to visit its Dashboard.
  2. Click "Project Settings" with the right-hand sidebar.
  3. Scroll to the Smart Orchestration section within Project Settings page
  4. Toggle "Cancel run when a test fails."
Enable cancellation of test runs upon first failure