rubyrspecguard

guard gem run all triggers on start


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?


Solution

  • 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?