https://github.com/ebazhanov/cypress-run-e2e-tests-in-parallel
An example how we can manage to run Cypress tests in parallel without using paid Dashboard in case if we want to )))
https://github.com/ebazhanov/cypress-run-e2e-tests-in-parallel
circleci cypress cypress-dashboard cypress-example cypress-io parallel typescript
Last synced: about 2 months ago
JSON representation
An example how we can manage to run Cypress tests in parallel without using paid Dashboard in case if we want to )))
- Host: GitHub
- URL: https://github.com/ebazhanov/cypress-run-e2e-tests-in-parallel
- Owner: Ebazhanov
- Created: 2021-08-18T22:07:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-19T00:18:05.000Z (almost 5 years ago)
- Last Synced: 2025-08-13T12:57:17.324Z (10 months ago)
- Topics: circleci, cypress, cypress-dashboard, cypress-example, cypress-io, parallel, typescript
- Language: TypeScript
- Homepage:
- Size: 70.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
### Run Cypress tests in Parallel without using paid [Dashboard](https://www.cypress.io/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](https://circleci.com/pricing/))
------
All we need to do is split the tests into parts `package.json` that we want to run in `CircleCI` in different Docker containers.
```json
"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`
```yaml
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](.circleci/config.yml) I suggest you analyze a simpler version [gist.github.com/Ebazhanov/6b0...](https://gist.github.com/Ebazhanov/6b0434132145e0b1ef67b07201c6cde0)
- Also, if you still want to use Cypress Dashboard, then here's their price list [cypress.io/pricing/](https://www.cypress.io/pricing/)
-----
P.S. see my examples with generating **HTML** Reports for Cypress tests
- ⭐ [Allure-2](https://github.com/Ebazhanov/cypress-allure2-report-example)
- 👍 [mochawesome-html-report](https://github.com/Ebazhanov/cypress-mochawesome-html-report-example)