cypress-sharding
v0.3.0
Published
run cypress parallell by sharding tests into different jobs
Downloads
4,879
Readme
cypress-sharding
run cypress parallell by sharding tests into different jobs
Use shard command in container
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
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)
Intro
This repo contains
- npm package expose a global
shard
command if installed globally - Dockerfile
Development
- Build
./build.sh
- Add tag
use your own [version]
docker tag fengzilong/cypress-sharding fengzilong/cypress-sharding:[version]
- Publish
docker publish fengzilong/cypress-sharding:[version]