Cypress - Bitbucket Pipelines
Running Cypress tests in parallel on Bitbucket Pipelines and Currents dashboard
TL;DR Check out the example repository:
The example config file:
uses a docker image with a pre-installed alternative Cypress test runner that allows using alternative orchestration services like Sorry Cypress and Currents.
runs 3 containers with cypress tests in parallel using
cypress-cloud
integration package and the command below:
Setup
Create an account at https://app.currents.dev
Get your Record Key and set Secure Bitbucket Pipeline variable
CURRENTS_RECORD_KEY
Get your Project ID and update the contents of
currents.config.js
Follow the install instructions for
cypress-cloud
packageUse CLI arguments to customize your cypress-cloud runs, e.g.:
npx cypress-cloud run --parallel --record --key <your currents.dev key> --group groupA
Note: Currents will automatically detect CI Build ID for Bitbucket Pipeline execution. Read the guide for more advanced use cases.
Note: Refer to the recent Pipeline executions to see the setup in action
Adding Bitbucket status check
Currents integration with Bitbucket posts runs progress and outcome for every Bitbucket Pipeline invocation:
Using Alternative Cypress Binaries
Currents team is maintaining an alternative version of the MIT-licensed Cypress test runner, compatible in features and open for using with recording services like Sorry Cypress and Currents.
Last updated