Skip to content

Instantly share code, notes, and snippets.

@jaredmoody
Created November 28, 2012 23:34
Show Gist options
  • Save jaredmoody/4165554 to your computer and use it in GitHub Desktop.
Save jaredmoody/4165554 to your computer and use it in GitHub Desktop.
guard cucumber
guard 'cucumber', :cli => "-f UnusedProgress" 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment