-
Notifications
You must be signed in to change notification settings - Fork 513
Correct options key passed to ParallelTests.determine_multiple #1018
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
Conversation
The --multiply-processes CLI option is being parsed into options[:multiply-processes] but the call to determine_multiple was looking for it in options[:multiply].
So, whilst this seems like a worthwhile "fix" from a code point of view it raised a query for me.. The |
rake tasts don't take arguments, so that can't work ... or do you mean the test-options rake argument ? yeah would be best to make |
lmk if you want this released or want to do another PR for that first |
Looks like you've merged it so I'll say yes please do haha.. What I meant above re arguments is:
Whereas the main spec run accepts
The problem as I see it is the |
@grosser - my first thought is to split out the options parse and
I'm neck deep in go-live work at the moment so it'll be a next month thing if I can get it happening. That said, just musing on using an environment variable like you mentioned above my gut feel is it's awkward. ie. I'm going to be copying the "num_processes" code out of the Gem just so I can run it in myself in my rake task to compute the processes and define the variable. In my mind it would be a lot cleaner if Let me know what you think so I don't bother making a PR that isn't the path forward you want for the Gem. |
|
for now released bugfix as 5.3.1 |
The
--multiply-processes
CLI option is being parsed intooptions[:multiply-processes]
but the call todetermine_multiple
was looking for it inoptions[:multiply]
.I haven't added a test for this as it seemed overkill although happy to add one if you feel it's worth it?
Thank you for your contribution!
Checklist
master
(if not - rebase it).code introduces user-observable changes.