Cypress - CircleCI

Running Cypress tests in parallel on CircleCI and Currents dashboard

circle-info

This is an example repository that showcases using CircleCIarrow-up-right with Currents.devarrow-up-right.

We are hosting independent versions of the Cypress App and docker imagesarrow-up-right with pre-installed binaries. Please refer to the documentationarrow-up-right for the list of supported binaries and versions.

The example config filearrow-up-right installs the custom Cypress App and runs 3 containers with Cypress tests in parallel using various setup scenarios.

Prerequisites

Bare CircleCI configuration

Please refer to the setup scenario that fits your needs.

Use Docker image with pre-installed Cypress

CircleCI configuration that uses Docker image with pre-installed cypress app. Refer to the documentationarrow-up-right for the list of supported binaries and versions.

Explicitly downloading alternative Cypress binary

CircleCI configuration that explicitly downloads alternative Cypress binary. Refer to the documentationarrow-up-right for the list of supported binaries and versions.

Using Cypress Orb with default executor

Cypress Orbarrow-up-right has pre-defined commands that facilitate creating CircleCI configuration. The examples below show how to integrate Cypress tests with Currents using Cypress Orb and various setup scenarios.

The examples below use Custom Test Commandarrow-up-right to run cypress-cloud for recording test results and parallelization with Currents.devarrow-up-right

Using cypress/default executor example

The configuration below uses the default cypress/default CircleCI executorarrow-up-right and installs custom Cypress binary during cypress/install step:

Using custom executor with pre-installed Cypress App

The configuration below uses the custom executorarrow-up-right with pre-installed Cypress App.

Use Docker image with pre-installed Cypress

CircleCI configuration that uses Docker image with pre-installed cypress app. Refer to the documentationarrow-up-right for the list of supported binaries and versions.


Here's an example of the demo run in Currents.dev dashboard, note that 3 cypress agents were used as part of this run:

Running Cypress tests in parallel on CircleCI

Last updated

Was this helpful?