Skip to content

Commit

Permalink
added guard support
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Aug 20, 2012
1 parent 7876adf commit bbfb3a8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
source "http://rubygems.org"

gem 'rake'
gem 'fuubar'
gem 'fuubar-cucumber'
gem 'growl'
gem 'guard-rspec'
gem 'guard-cucumber'

# Specify your gem's dependencies in testgen.gemspec
gemspec
10 changes: 10 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard 'cucumber', :notification => true, :all_after_pass => true, :cli => '--profile default' 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' }
watch(%r{^lib/.+\.rb$}) { "features" }
watch(%r{^cucumber.yml$}) { "features" }
end
2 changes: 1 addition & 1 deletion cucumber.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
default: --no-source --color --format pretty
autotest: --no-source --color --format pretty

0 comments on commit bbfb3a8

Please sign in to comment.