When developing in rails I use watchr to run the tests each time a file is saved, but lots of times I find my self adding a whitespace or a newline and saving just to trigger watchr and run the tests.
I wanted to have is a simple keyboard shortcut (like F15
) to tell watchr to run the last spec, and mpartel (thx! : ) gave me an idea on how to do it, so here it is:
Obviously you need watchr, but we're also going to need pgrep
that will help us find out the pid of the watchr process. So go ahead and do
sudo port install proctools