I have my features organized in subfolders, like this:
app/
features/
users/
feature1.feature
feature2.feature
But everytime I save a feature, Guard runs all my features (not just the one that was edited). How can I change it to only run the one that was saved?
Here’s my Guardfile for Cucumber:
guard 'cucumber', :cli => "--drb --require features/support --require features/step_definitions" do
watch(%r{features/.+\.feature})
watch(%r{features/support/.+}) { 'features' }
watch(%r{features/step_definitions/(.+)_steps\.rb}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
Aph, the answer was right there in the documentation:
So, passing in
--no-profilefor the:clioption works now, and I’m getting normal behavior.Shame on me for not reading the docs!