scalatest / scalatest-maven-plugin

ScalaTest Maven Plugin
Apache License 2.0
34 stars 61 forks source link

Is it possible to set the -P options when running scalatest #96

Open juliangp opened 2 years ago

juliangp commented 2 years ago

When running scalatest it is possible to set the thread count when running in parallel mode:

argument description example
-P[S][integer thread count] specifies a parallel run, with optional suite sorting and thread count (Note: only one -P allowed) -P, -PS, -PS8, or -P8
cheeseng commented 2 years ago

@juliangp Unfortunately I don't see that option from the source, will be a nice enhancement though, including the sorted 'S' support. I'll see if I can help with this.

juliangp commented 2 years ago

@cheeseng thanks - I can provide a PR as well if needed - to keep backward compatibility you will probably need to keep parallel as boolean and add a new option that overrides parallel if set?

cheeseng commented 2 years ago

@juliangp Thanks for offering to help, I have submitted the following PR:

https://github.com/scalatest/scalatest-maven-plugin/pull/97

and yes I maintained parallel and added two new suiteSorting and threadCount, to make it backward compatible.