Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Add command to run all tests in parallel #3

Closed
bahmutov opened this issue Oct 23, 2018 · 3 comments
Closed

Add command to run all tests in parallel #3

bahmutov opened this issue Oct 23, 2018 · 3 comments

Comments

@bahmutov
Copy link
Contributor

Need a command to check out code, install dependencies and run all tests in parallel

@bahmutov
Copy link
Contributor Author

bahmutov commented Oct 23, 2018

easy to pass --parallel parameter, but hard to pass parallelism integer, I have opened an issue with Circle about this CircleCI-Public/config-preview-sdk#121

Using string parallelism parameter breaks CircleCI and the job keeps hanging https://circleci.com/workflow-run/b5a654d5-e679-4aed-be56-200f1d977236

screen shot 2018-10-23 at 12 45 24 pm

@bahmutov
Copy link
Contributor Author

For now used template in yaml to define parallel-1x, parallel-2x, ... parallel-10x jobs and used them from this project like

version: 2.1
orbs:
  cypress: cypress/cypress@dev:0.0.1
workflows:
  build:
    jobs:
      - cypress/install
      - cypress/parallel-3x:
          requires:
            - cypress/install
          group: "3x"

@bahmutov
Copy link
Contributor Author

If jobs support parallelism parameter then it would be simply

version: 2.1
orbs:
  cypress: cypress/cypress@dev:0.0.1
workflows:
  build:
    jobs:
      - cypress/install
      - cypress/run:
          requires:
            - cypress/install
          parallelism: 3
          parallel: true
          group: "3x"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant