Cypress - Azure DevOps
Running Cypress test in parallel on Azure DevOps and Currents Dashboard
This guide will help you to run Cypress tests in parallel using Azure DevOps and Currents Dashboard. The example showcases using 3 Azure DevOps containers for parallelizing the execution using Currents as an orchestration and reporting service.
TLDR; Check out the example Azure DevOps pipeline configuration file
Connect a new/existing pipeline to a repository containing your Cypress tests
Make sure that your
cypress.config.js
file has the correctprojectId
. You can fetch theprojectId
by navigating to https://app.currents.dev and then Project Name > Manage ProjectMake sure that both
cypress
and cypress-cloud are listed in yourpackage.json
as dependenciesCreate or modify an existing Variable Group, and add a new secret variable called
CURRENTS_SECRET
. You can grab the secret key at Currents Dashboard > Org Name (Header Menu) > Record KeysModify your
azure-pipelines.yml
file and use this file as a reference.
Pipeline executions will be orchestrated via the Currents Dashboard, and execution results and artifacts will be automatically uploaded as well.
Last updated