Skip to content

Auto run cucumber after rspec passes

jaredmoody edited this page Nov 8, 2012 · 2 revisions
guard :rspec do 
  # ... your normal rspec guard config goes here

  # run cucumber after rspec passes
  callback(:run_all_end) do
    unless Guard.guards(:rspec).last_failed
      Guard.run_all({ :guard => Guard.guards(:cucumber) })
    end
  end
end
Clone this wiki locally