mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
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:
parent
24d8a2b17f
commit
6f218901da
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue