Skip to content

I want to set specific specs to run in each machine with cypress parallelization in azure-pipeline #15429

Answered by bahmutov
Mturki94 asked this question in CI setup
Discussion options

You must be logged in to vote

Unfortunately, this is not possible. Of course you can always just specify the specs to run yourself and just use the same CI build ID to link these specs into the single logical recording on the Dashboard

# first machine
npx cypress run --record --ci-build-id $SOME_BUILD_ID --spec cypress/integration/b.js,cypress/integration/c.js
# second machine
npx cypress run --record --ci-build-id $SOME_BUILD_ID --spec cypress/integration/a.js,cypress/integration/d.js

Or you can use https://on.cypress.io/module-api to execute cypress.run from your code and apply any logic you want

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mturki94
Comment options

Answer selected by bahmutov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants