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

Compatibility with cypress 10 #114

Open MayankArora20 opened 2 years ago

MayankArora20 commented 2 years ago

I just updated to cypress 10.0.3 and I realize that when I am using cypress-parallel, its not trying to run few of the excluded pattern files as test. This makes few of the threads go wasted as if I am using -t 5, I am only able to see 3 specs in execution. I am using cypress-parallel 0.9.0. Also, in my cypress.config.ts, I have made few configurations like reporter, etc, but those are not taken up by cypress-parallel.

joshuajtward commented 2 years ago

Hi @MayankArora20! I think there are two issues you are raising here, so I'll try to separate them:

  1. "its not trying to run few of the excluded pattern files as test" - I'm not sure exactly what you mean, but this sounds like expected behaviour, have you ensured that your specPattern and excludeSpecPattern are correct following your migration to Cypress 10.0.3? This module will only parallelize tests by spec file (not by test case) - so if you only have three spec files the most threads you should/can use is -t 3!
  2. As for reporter, what config changes have you made, and what issues are you seeing? Have you tried playing around with the --reporter and --reporterOptions flags?