Skip to content

Commit

Permalink
add rake task to run selenium cucumber features with rake cucumber:se…
Browse files Browse the repository at this point in the history
…lenium

rake cucumber runs all non-selenium stories
rake cucumber:selenium runs all selenium stories
  • Loading branch information
lrbalt committed Mar 8, 2010
1 parent 24d8a2b commit 6f21890
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/tasks/cucumber.rake
Expand Up @@ -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
Expand Down

0 comments on commit 6f21890

Please sign in to comment.