Skip to content


parallel functions are returning argument errors #129

javajax opened this Issue · 11 comments

3 participants


whenever I run the commands create, prepare, or seed I get an argument error.
any suggestions

rake parallel:create
bundle exec parallel:create

the error is.
block in non_options': file not found: db:drop (ArgumentError)
and in the stack trace it is trying to look in ruby 1.9.1


try bundle exec rake parallel:create


if it still fails, use -t to get a full backtrace + post it here


yeah i have root$ bundle exec rake


the only difference is this output at the top
** Invoke parallel:create (first_time)
** Execute parallel:create

other then that there are 8 errors in a row saying all the same thing.

  • please post the trace of 1 of these errors
  • see if rake db:create works or if it throws the same error

rake db:create works.
here is a trace.

/Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:167:in block in non_options': file not found: db:create (ArgumentError)
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:146:in
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:146:in non_options'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:207:in
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:52:in process_args'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/minitest/unit.rb:891:in
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/minitest/unit.rb:884:in run'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:21:in
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:326:in block (2 levels) in autorun'
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:27:in
from /Users/jax/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'


that`s deep inside test-unit, something is wrong in your setup...
there is no sign of parallel_tests in this trace


I noticed there was no parallel test in here but this is in create.

you can use create, prepare and seed and get errors.
but you can run tests and it appears to work.
however i am just trying to get rid of all the errors.

I don't think test-unit is in used in rake db:create


I had the same problem and it was caused by this: thoughtbot/shoulda-context#4


can you make this into a pull-request / is there something people that have this bug can do ?


@grosser i think it's not a bug in parallel_tests but some other gem.

@jthorne are you using shouldy, too, by any chance?

@grosser grosser closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.