powerful-orange-86819
02/20/2023, 11:08 AMyml
stages:
- test
test:
image: cypress/browsers:node16.17.0-chrome106
parallel:
matrix:
- SUITES: "suite1.spec.js, suite2.specjs, suite3.spec.js"
the CI Lint validator says is correct but cypress returns an error.
Anyone know about this error?adventurous-dream-20049
02/20/2023, 3:21 PMadventurous-dream-20049
02/20/2023, 3:22 PMstages:
- test
test:
image: cypress/browsers:node16.17.0-chrome106
parallel:
matrix:
- SUITES: suite1.spec.js, suite2.specjs, suite3.spec.jsadventurous-dream-20049
02/20/2023, 3:22 PMnutritious-honey-65632
02/20/2023, 5:40 PMSUITES: [suite1.spec.js, suite2.specjs, suite3.spec.js]powerful-orange-86819
02/20/2023, 9:22 PMpowerful-orange-86819
02/20/2023, 9:23 PMnutritious-honey-65632
02/20/2023, 9:24 PMnutritious-honey-65632
02/20/2023, 9:25 PMpowerful-orange-86819
02/20/2023, 9:26 PMyml
stages:
- test
test_job_1:
image: cypress/browsers:node16.17.0-chrome106
parallel:
matrix:
- TAB: suite1.spec.js, suite2.specjs, suite3.spec.js
stage: test
timeout: 3h
only:
- schedules
variables:
GIT_SUBMODULE_STRATEGY: normal
script:
- npm ci
- npx cypress run $BROWSER $CYPRESS_RUN --ci-build-id $CI_PIPELINE_ID --group $TAB --spec "cypress/e2e/${TAB}"
test_job_2:
image: cypress/browsers:node16.17.0-chrome106
parallel:
matrix:
- TAB: suite4.spec.js, suite5.specjs, suite6.spec.js
stage: test
timeout: 3h
only:
- schedules
variables:
GIT_SUBMODULE_STRATEGY: normal
script:
- npm ci
- npx cypress run $BROWSER $CYPRESS_RUN --ci-build-id $CI_PIPELINE_ID --group $TAB --spec "cypress/e2e/${TAB}"
This yml file so far creates 2 jobs, but only executes the first suite and then ends 🤔powerful-orange-86819
02/20/2023, 9:26 PMpowerful-orange-86819
02/20/2023, 9:28 PMnutritious-honey-65632
02/20/2023, 9:32 PMThis yml file so far creates 2 jobs, but only executes the first suite and then ends :thinking: If it ends after suite1.spec.js Im guessing you have test files imported there and you have an error in before or after. Then it will skip everything elsepowerful-orange-86819
02/20/2023, 10:06 PMyml
stages:
- test
test:
image: cypress/browsers:node16.17.0-chrome106
parallel:
matrix:
- TAB: [
"suite1.spec.js, suite2.specjs, suite3.spec.js",
"suite4.spec.js, suite5.specjs, suite6.spec.js"
]
stage: test
only:
- schedules
variables:
GIT_SUBMODULE_STRATEGY: normal
script:
- npm ci
- npx cypress run --parallel --ci-build-id $CI_PIPELINE_ID --group $TAB --spec $TAB
This creates 2 parallel executed jobs that each runs the specs in order. Saves time, creates order and nonetheless makes reporting betternutritious-honey-65632
02/20/2023, 10:11 PM