Skip to content

Ebazhanov/cypress-run-e2e-tests-in-parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Cypress tests in Parallel without using paid Dashboard

CircleCI

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

P.S. see my examples with generating HTML Reports for Cypress tests

About

An example how we can manage to run Cypress tests in parallel without using paid Dashboard in case if we want to )))

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published