Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
juliangp opened this issue Sep 6, 2022 · 3 comments
Open

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

juliangp opened this issue Sep 6, 2022 · 3 comments

Comments

@juliangp
Copy link

juliangp commented Sep 6, 2022

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
Copy link
Contributor

cheeseng commented Sep 7, 2022

@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
Copy link
Author

juliangp commented Sep 7, 2022

@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
Copy link
Contributor

cheeseng commented Sep 7, 2022

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

#97

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants