cypress-test-example-repos
cypress-test-example-repos copied to clipboard
Find a way to pass group id
Currently we call a command on recipes like this
npm run test:ci
Which in turn calls run-p command
"test:ci": "run-p --race start cypress:run"
Problem - we cannot pass additional CLI arguments. For example npm run test:ci -- --group-id 1 breaks because it calls run-p --race start cypress:run --group-id 1 - which causes run-p to report "unknown option" :(
Can you just get rid of the race altogether and just just npm start and use wait-on ??
It would match better what we actually recommend to our users (and be a lot less confusing)
https://docs.cypress.io/guides/guides/continuous-integration.html#Booting-Your-Server
well we need single command I believe, so not wait-on but start-server-then-test
Why do we need a single command? You'll just background the server process.
because we are iterating over each folder, running "test" command. Why split it into background task, keep track of the test then kill the background task? That's what start-server ... does - so just need to use it.