开发者

guard gem run all triggers on start

Hi this is driving me crazy. I couldn't find a solution after a long time.

How do I trigger a "run_all" for all 开发者_运维百科guards in the Guardfile.

When i run "guard" in the shell, I want it to sort off pretend like all files have changed and trigger all guards.

What's a clean way to do this from the Guardfile.


Create a guardfile on the root of the app and set the guard config to something like rspec example:

guard 'rspec', :version => 2, :all_on_start => false do


This happens for me with no additional configuration. I've noticed that some guards have options to override this behavior. For instance, guard-rspec has the all_on_start option, which you can set to false if you don't want to run your specs when you fire up guard.

As specified in the guard readme, if you are using guard >= 0.7.0, you can press enter to call each guards #run_all method in the order they are listed in the Guardfile. Try that?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜