Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 0.8 kb
require 'rubygems'
require 'bundler'
require 'rspec/core/rake_task'
require 'cucumber'
require 'cucumber/rake/task'
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.ruby_opts = "-I lib:spec"
spec.pattern = 'spec/**/*_spec.rb'
end
task :spec
namespace :features do
Cucumber::Rake::Task.new(:watir_webdriver, "Run features with Watir") do |t|
t.profile = "watir"
end
Cucumber::Rake::Task.new(:selenium_webdriver, "Run features with Selenium") do |t|
t.profile = "selenium"
end
desc 'Run all features'
task :all => [:watir_webdriver, :selenium_webdriver]
end
desc 'Run all specs and cukes'
task :test => ['spec', 'features:all']
task :lib do
$LOAD_PATH.unshift(File.expand_path("lib", File.dirname(__FILE__)))
end
task :default => :spec
Jump to Line
Something went wrong with that request. Please try again.