有没有办法用guard + guard-rspec强制运行所有规格?

Eri*_* M. 4 testing rspec ruby-on-rails guard

是否有类似于autotest的ctrl + c强制运行所有规格?我还在努力调整我的.Guard文件,但暂时可以强行运行所有规格而不重新启动后卫吗?ctrl + c退出警卫.

bal*_*and 26

马克建议的posix信号不再用于与守卫交互.有关新的交互方式,请参阅自述文件中标题为"交互"的部分.

要触发每个守卫的run_all方法,只需按下进入守卫终端.要触发rspec的run_all方法,请键入rspec并按Enter键.


Day*_*ury 17

https://github.com/guard/guard#interactions

当Guard无事可做时,您可以与Guard交互并输入命令.Guard了解以下命令:

?: 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.
Run Code Online (Sandbox Code Playgroud)

所以,基本上你进入Guard正在运行的终端并按下Enter/return.