tnicola / cypress-parallel

Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
MIT License
578 stars 121 forks source link

If suppose i want to run these scripts through jenkins how should i pass thread count as parameters #125

Open Ganesh86888 opened 2 years ago

Ganesh86888 commented 2 years ago

is this possible to pass a thread count through choice parameters in jenkins

karthikeefe commented 1 year ago

cypress-parallel -s cy:run -t ${THREAD} -d ${SPEC} -a '\"--config baseUrl=${BASE_URL}\"'"

Keep your env variables like this in package.json. And use the same names for your parameters in Jenkins. this worked for me.