Sha256: 45ed0fb95bef45138ec7157295f375ae80acb9176e04cf98f3193b4a5dfd6fa9

Contents?: true

Size: 635 Bytes

Versions: 8

Compression:

Stored size: 635 Bytes

Contents

require "rubygems"
require 'rake'
require 'rake/testtask'
require 'cucumber/rake/task'
require 'selenium/rake/tasks'

task :cucumber do
  browsers = [{ :browserName => "firefox", :version => 9, :platform => "WINDOWS" }, { :browserName => "firefox", :version => 10, :platform => "WINDOWS" }]

  browsers.each do |browser|
    ENV['SELENIUM_BROWSERNAME'] = browser[:browserName]
    ENV['SELENIUM_BROWSERVERSION'] = browser[:version].to_s
    ENV['SELENIUM_BROWSERPLATFORM'] = browser[:platform]
    Rake::Task[:run_cucumber].execute(browser)
  end
end

Cucumber::Rake::Task.new(:run_cucumber) do |t|
  t.cucumber_opts = ["features"]
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
testingbot-0.1.7 examples/cucumber/Rakefile
testingbot-0.1.6 examples/cucumber/Rakefile
testingbot-0.1.5 examples/cucumber/Rakefile
testingbot-0.1.4 examples/cucumber/Rakefile
testingbot-0.1.3 examples/cucumber/Rakefile
testingbot-0.1.2 examples/cucumber/Rakefile
testingbot-0.1.1 examples/cucumber/Rakefile
testingbot-0.1.0 examples/cucumber/Rakefile