Start using cypress in docker compose on gitlab,
how can I run tests parallel in docker compose?
I use this command in docker:
npx cypress run -b chrome
What do I need to use for starting tests parallel and combine test results?
To use it, simply add parallel: 4 to the GitLab CI job, and then call node parallelCypress. js <some options> . It will then scan for tests and split them up to the available parallel jobs, then invoke cypress with the --spec option, so that each job only runs a part of the tests.
Cypress restricts running tests parallelly on a local machine. The framework was explicitly designed to do this, and multiple reasons for this can be found in the Cypress official docs. Cypress provides a Parallel Testing option by setting up multiple machines.
Setup Cypress DashboardEnter the project name, owner and users, who can see the project. Then, click on Set up project. The projectId obtained from the Cypress suggestion should match with the project id available in the cypress. json file within the project folder.
You will still need some type of "dashboard" to coordinate, record and parallelize your tests.
You can either use Cypress.io dashboard, or run your own service that coordinates parallelization.
For example (disclaiming that I am the author): https://github.com/agoldis/sorry-cypress
Cypress.io used to provide free parallelization but recently I have got this message:
This Thursday, July 11, 2019, we will begin enforcing limits on test recordings and based on your organization's recent usage of the Cypress Dashboard, your account will be impacted.
After exceeding 100% of your plan's test recording limit, parallelization will be disabled and new test recordings will be hidden from the dashboard.
Magnolia from Customer Support
Cypress.io provides free access to their dashboard for Open Source projects, and there's also a "free" plan with limited recording and parallelization capacity (as of Sep 24, 2019).
See https://www.cypress.io/pricing/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With