run cypress parallell by sharding tests into different jobs
npm install cypress-shardingrun cypress parallell by sharding tests into different jobs
``bash`
shard "cypress/*/.cy.ts" 1/3 --ignore=path/to/file1,path/to/file2 | xargs cypress run --spec
Or read ignore option from local file content
`bash`
shard "cypress/*/.cy.ts" 1/3 --ignore "$(< ignorefiles.txt)" | xargs cypress run --spec
If xargs receives an empty input, cypress run will be skipped (CI won't be failed in this case)
This repo contains
- npm package expose a global shard command if installed globally
- Dockerfile
- Build
`bash`
./build.sh
- Add tag
> use your own [version]
`bash`
docker tag fengzilong/cypress-sharding fengzilong/cypress-sharding:[version]
- Publish
`bash``
docker publish fengzilong/cypress-sharding:[version]