Get started with a free parallelization using sorry-cypress
Let's start by running basic sorry-cypress configuration:
docker run -p 1234:1234 agoldis/sorry-cypress-director
cy2passes down all the CLI flags to
cypress, so you can just use
npm install cy2 cypress
npx cy2 run --record --key XXX --parallel --ci-build-id `date +%s`
Let's open several terminal windows and run
cypressin each. Make sure you have cypress tests defined in advance (clone https://github.com/agoldis/sorry-cypress-demo.git if you don't have any test handy).
# run in each terminal
CYPRESS_API_URL="http://localhost:1234/" npx cy2 run --parallel --record --key somekey --ci-build-id hello-cypress
You'll notice that different instances of cypress agents are running different tests.
🎉 We've just finished the basic setup of sorry-cypress and ran our tests in parallel!