Is there something similar to autotest's ctrl+c to force run all specs? I'm still working to fine tune my .Guardfile, but for the time being can I force run all specs without restarting guard? ctrl+c quits guard.
The posix signals that Mark suggests are no longer used to interact with guard. See the section titled "Interactions" in the README for the new way to interact.
To trigger each guard's run_all
method, just hit enter in the guard terminal. To trigger rspec's run_all
method, type rspec
and hit enter.
https://github.com/guard/guard#interactions
You can interact with Guard and enter commands when Guard has nothing to do. Guard understands the following commands:
↩: Run all Guards.
h, help: Show a help of the available interactor commands.
r, reload: Reload all Guards.
n, notification: Toggle system notifications on and off.
p, pause: Toggles the file modification listener. The prompt will change to p> when paused. This is useful when switching Git branches, rebase Git or change whitespace.
e, exit: Stop all Guards and quit Guard.
So, basically you go into the terminal where Guard is running and hit enter/return.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With