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

Threads run all specs when less specs then treads are found #129

Closed Jsijbel closed 1 year ago

Jsijbel commented 2 years ago

When there are for example 2 specs found, but the command was ran with 3 or more threads configured the first 2 agents run the correct specs but the 3rd and more agents run all specs. This complicates the configuration a lot when automating the running of specs with the parallel plugin.

image

It would be nice if the package took the found tests into account when starting threads, and not start more threads then specs.

So when 3 threads are configured, but only 2 specs were found only 2 threads would be started.

Jsijbel commented 2 years ago

Also created a pull request.

https://github.com/tnicola/cypress-parallel/pull/130

VinceOPS commented 1 year ago

I can confirm the same unexpected behavior here with v0.10.0 (mac os 12+, apple M1 pro, yarn v1, node 16)

tnicola commented 1 year ago

This should be fixed now. Thanks @Jsijbel !