Skip to content

Instantly share code, notes, and snippets.

@robertodecurnex
Created October 30, 2012 15:52
Show Gist options
  • Save robertodecurnex/3981098 to your computer and use it in GitHub Desktop.
Save robertodecurnex/3981098 to your computer and use it in GitHub Desktop.
An example of how to run cucumber multiple times (same goes for rspec)
require 'rake'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new
Rake.application['cucumber'].invoke
#=> The tests run here
Rake.application['cucumber'].reenable
Rake.application['cucumber'].invoke
#=> They run again here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment