Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How i can run parallel test in docker on gitlab without dashboard?

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?

like image 796
Kkkk Avatar asked May 22 '19 14:05

Kkkk


People also ask

How do you run Cypress tests in parallel without dashboard?

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.

Can I run Cypress tests in parallel locally?

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.

How do you use Cypress dashboard?

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.


1 Answers

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/

like image 59
agoldis Avatar answered Sep 29 '22 05:09

agoldis