Cypress - CircleCI
Running Cypress tests in parallel on CircleCI and Currents dashboard
TL;DR Check out the example repository:
This is an example repository that showcases using CircleCI with Currents.dev.
We are hosting independent versions of the Cypress App and docker images with pre-installed binaries. Please refer to the documentation for the list of supported binaries and versions.
The example config file installs the custom Cypress App and runs 3 containers with Cypress tests in parallel using various setup scenarios.
Prerequisites
Create an account at https:/app.currents.dev.
Obtain ProjectId and Record Key.
Set
CURRENTS_RECORD_KEY
:create CircleCI context and set
CURRENTS_RECORD_KEY
.alternatively, set Environment variable
CURRENTS_RECORD_KEY
Follow the setup instructions at https://currents.dev/readme/integration-with-cypress/cypress-cloud to create
currents.config.js
set yourprojectId
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 documentation for the list of supported binaries and versions.
Explicitly downloading alternative Cypress binary
CircleCI configuration that explicitly downloads alternative Cypress binary. Refer to the documentation for the list of supported binaries and versions.
Using Cypress Orb with default executor
Cypress Orb 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 Command to run cypress-cloud
for recording test results and parallelization with Currents.dev
Using cypress/default
executor example
cypress/default
executor exampleThe configuration below uses the default cypress/default
CircleCI executor and installs custom Cypress binary during cypress/install
step:
Using custom executor with pre-installed Cypress App
The configuration below uses the custom executor 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 documentation 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:
Last updated