Run Cypress tests in Parallel without using paid Dashboard
NOTE: Important to know that you have to have paid subscription for CircleCI which allowed you to scale your jobs in concurrency otherwise, all your jobs will queue up and will be executed sequentially!!! (price)
All we need to do is split the tests into parts package.json
that we want to run in CircleCI
in different Docker containers.
"scripts": {
"cy:run:part_1": "cypress run --browser chrome --spec ./cypress/integration/1-getting-started/todo.spec.ts",
"cy:run:part_2": "cypress run --browser chrome --spec ./cypress/integration/2-advanced-examples/actions.spec.ts"
},
And in the same order, keep them organize in CircleCI
workflows:
version: 2
build_and_test:
jobs:
- build
- tests_part_1:
requires:
- build
- tests_part_2:
requires:
- build
-
If you have difficulty reading .circleci/config.yml I suggest you analyze a simpler version gist.github.com/Ebazhanov/6b0...
-
Also, if you still want to use Cypress Dashboard, then here's their price list cypress.io/pricing/
P.S. see my examples with generating HTML Reports for Cypress tests