grosser / parallel_tests

Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
3.39k stars 495 forks source link

How can we limit the amount of databases created to a specified value? #976

Closed tgentry-bamboo closed 1 month ago

tgentry-bamboo commented 1 month ago

Hello, thank you for all the hard work on this library!

Ideally I'd like to be able to run bundle exec rails parallel:create[1]. I can see here https://github.com/grosser/parallel_tests/blob/master/lib/parallel_tests/tasks.rb#L169 that options can be passed to the parallel:x commands by using brackets after the command that comes after the modifier create. In my case I need to be able to limit the amount of databases created. Any guidance would be greatly appreciated.

Here is what happens when I run the command:

 $ bundle exec rails parallel:create[1]
zsh: no matches found: parallel:create[1]
tgentry-bamboo commented 1 month ago

Nevermind, sorry for the confusion. I forgot that ZSH uses brackets to glob for files. Feel free to close this issue.