Permalink
Browse files

Configure Guard to run RSpec specs and Cucumber features in a similar…

… fashion
  • Loading branch information...
njonsson committed May 13, 2013
1 parent bc60d47 commit a60bae54a5ee238bb37b188840d26cedd4022ecf
Showing with 8 additions and 2 deletions.
  1. +8 −2 Guardfile
View
@@ -1,6 +1,9 @@
interactor :off
-guard :rspec, :cli => '--debug' do
+guard :rspec, :all_after_pass => true,
+ :all_on_start => false,
+ :keep_failed => false,
+ :cli => '--debug' do
# Run the corresponding spec (or all specs) when code changes.
watch(%r{^lib/(.+)\.rb$}) do |match|
Dir["spec/#{match[1]}_spec.rb"].first || 'spec'
@@ -17,7 +20,10 @@ guard :rspec, :cli => '--debug' do
watch('Gemfile.lock') { 'spec' }
end
-guard :cucumber do
+guard :cucumber, :all_after_pass => true,
+ :all_on_start => false,
+ :keep_failed => false,
+ :focus_on => 'focus' do
# Run run all features when code changes.
watch(%r{^lib/(.+)\.rb$}) { 'features' }

0 comments on commit a60bae5

Please sign in to comment.