bahmutov / cypress-split

Split Cypress specs across parallel CI machines for speed
MIT License
219 stars 24 forks source link

Running cypress-split on BitBucket pipeline #104

Closed v42a33 closed 1 year ago

v42a33 commented 1 year ago

I'm having issues trying to split my tests through BitBucket pipelines. Cypress-split is able to identify all the specs and split them properly using the environment variables SPLIT_INDEX and SPLIT, however each parallel step in bb pipelines still tries to run all of the tests when the run starts. Can you please help me troubleshoot this? Thank you

Here's what a step will look like:

cypress-split: there are 30 found specs cypress-split: split 1 of 10 k spec


1 e2e/client/{testname}_4.cy.ts 2 e2e/client/{testname}_5.ts
3 e2e/client/{testname}_6.cy.ts

(Run Starting) Running: {testname}_1.cy.ts (1 of 30)

bahmutov commented 1 year ago

https://github.com/bahmutov/cypress-split#install - make sure to return the config object