add rake task to run selenium cucumber features with rake cucumber:selenium

rake cucumber runs all non-selenium stories
rake cucumber:selenium runs all selenium stories
This commit is contained in:
Reinier Balt 2010-03-08 20:36:55 +01:00
parent 24d8a2b17f
commit 6f218901da

View file

@ -26,6 +26,13 @@ unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:
t.profile = 'wip'
end
Cucumber::Rake::Task.new({:selenium => 'db:test:prepare'}, 'Run features that require selenium') do |t|
t.binary = vendored_cucumber_bin
t.fork = true # You may get faster startup if you set this to false
t.profile = 'selenium'
ENV['RAILS_ENV'] = "selenium" # switch to selenium environment
end
desc 'Run all features'
task :all => [:ok, :wip]
end