Search code examples
ruby-on-rails-4guardminitestzeus

How to correctly run minitest with Guard, through zeus


I have a Rails 4 application, tested with stock minitest. Zeus is set-up and working, so is Guard.

However, when I have Zeus running and fire Guard, it does not speed up: Guard does not seem to use Zeus for faster booting, despite having

guard 'minitest', :zeus => true do 
end

in the guardfile. Is this simply not (yet) supported in Rails4? Am I missing some crucial bit of configuration?

Some additional details: when I run my tests with zeus rake test they are slow; comparable to running them without zeus rake test. When running with zeus test test/ they are ten times faster, but they run twice (a known issue, yet maybe a hint to what I am doing wrong?). Also not that I fire up Guard with bundle exec guard, because that is what Guard tells me to do.


Solution

  • For some reason, I was using a really old guard and guard-minitest 0.4.x. Updating them to the current 2.x.x version solves my issues.