Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… fashion
  • Loading branch information...
commit a60bae54a5ee238bb37b188840d26cedd4022ecf 1 parent bc60d47
@njonsson authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 Guardfile
View
10 Guardfile
@@ -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' }
Please sign in to comment.
Something went wrong with that request. Please try again.