forked from cheezy/page-object
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (27 loc) · 800 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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