Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to force run all specs with guard + guard-rspec?

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.

like image 719
Eric M. Avatar asked Nov 26 '22 21:11

Eric M.


2 Answers

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.

like image 146
balexand Avatar answered Dec 30 '22 07:12

balexand


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.

like image 45
Day Davis Waterbury Avatar answered Dec 30 '22 08:12

Day Davis Waterbury