Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Exception encountered: #<LoadError: no such file to load -- -r> #2
Not sure where this error is coming from but looking for help to isolate.
I'm trying to add spork (via spork-minitest) to my rails 3.2.3 project which is using minitest and guard. I've added spork-minitest to the gemfile, and generated a spork entry in the guardfile:
I moved all of the code in my test_helper into the Spork.prefork block:
I can then run spork using and see that tests are much faster via
I then try to run the same process through guard via
I'm starting here because spork-minitest is deepest in the stack, and because I verified that guard works properly before attempting to integrate spork.
Unfortunately, this gem doesn't work with guard properly. Apparently it works now with guard-spork, since you don't get any errors on the start but guard-minitest is still broken. The issue is that spork-minitest doesn't support any options like
I have found that it is too complex to fix that and decided to use a Guard MiniTest alternative for testing: Autotest (or ZenTest). Also, I start spork manually. If you still want to use Guard you can try out the original spork-testunit instead of spork-minitest. It is much more complex than mine but should work.
Thanks, I missed that before. Did the trick. I also added something to .autotest to run spork if it's not already running. Very kludgy solution I'm sure, but in case anyone is interested (gist: https://gist.github.com/2667886)