semaperepelitsa / spork-minitest

MiniTest runner for Spork
MIT License
13 stars 25 forks source link

Issues integrating with Guard-Minitest + Spork-minitest #12

Open 34code opened 11 years ago

34code commented 11 years ago

I love this gem but am having difficulty integrating spork ... and guard for automated testing.

I think its related to drb...

In the guard file.. I am recommended to use:

guard 'minitest', :drb => true do
  # ...
end

but it fails with that, giving a drb connection refused error.. so only this method works:

guard 'minitest', :drb => false do
  # ...
end

Any ideas how I can get the drb setting to work? Without the drb setting, am I missing out on performance a lot?

HuckyDucky commented 11 years ago

You're getting the drb connection refused error because you have to explicitly pass ":minitest => true" in your "guard 'spork' line in your Guardfile. Example:

guard 'spork', :minitest => true, :rspec => false, :cucumber => false, :test_unit => false, :bundler => false do
  watch('config/application.rb')
  watch('config/environment.rb')
  watch('config/environments/test.rb')
  watch(%r{^config/initializers/.+\.rb$})
  watch('Gemfile')
  watch('Gemfile.lock')
  watch(%r|^test/support/.+\.rb$|)
end