tnicola / cypress-parallel

Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
MIT License
560 stars 117 forks source link

Cannot exclude tests with Cypress command arguments (-a) #155

Closed muradsofi closed 7 months ago

muradsofi commented 1 year ago

When I want to execute the following test via cypress-parallel it does not work as expected.

 "e2e:pipeline-parallel": "cypress-parallel -v -t 2 -d cypress/e2e -s e2e:local  -a '"--spec **/!(not-ready-for-pipeline)/*"'",

Looks like both threads are executing the same things and specs are not being split in different threads because threads creating before the cypress command execution.

Probably my temporary solution will add tests to a new folder and use the cypress specs directory argument ( -d) to execute tests only inside a specific folder.

But my suggestion is it will be better cypress-parallel accept --spec argument (which is exactly the same as cypress cli accepts)