cypress-split
cypress-split copied to clipboard
Figure out how to split specs if given a parameter
How to split specs if the user has used cypress run --spec ... parameter? Related to https://github.com/cypress-io/cypress/issues/26032
Probably can replace --spec ... with --config specPattern=... equivalent
Can confirm that simply replacing --spec with --config specPattern= equivalent works.
Replaced
--spec \"tests/cypress/integration/**/*_spec.*\"
with
--config specPattern=\"tests/cypress/integration/**/*_spec.*\"
And everything worked as expected.