🧪
specut
  • Introduction
  • Config
  • Recipes
    • GitHub
    • GitLab
  • Examples
    • Amount
    • Mode
  • Links
    • GitHub
Powered by GitBook
On this page
  1. Recipes

GitHub

How to run a Cypress suite in parallel:

jobs:
 e2e-bugs:
  runs-on: ubuntu-latest
  strategy:
   matrix:
    chunk-index: [ 0, 1, 2, 3, 4 ]
  steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-node@v3
  - run: npx specut cypress/e2e/bugs --mode it
  - run: npx cypress run --headless --spec cypress/e2e/__bugs__${{ matrix.chunk-index }}
 e2e-features:
  runs-on: ubuntu-latest
  strategy:
   matrix:
    chunk-index: [ 0, 1, 2, 3, 4 ]
  steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-node@v3
  - run: npx specut cypress/e2e/features --mode it
  - run: npx cypress run --headless --spec cypress/e2e/__features__${{ matrix.chunk-index }}
PreviousRecipesNextGitLab

Last updated 3 months ago