forked from ModusCreateOrg/cucumber-watir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
65 lines (54 loc) · 2.07 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
require 'cucumber/rake/task'
require 'fileutils'
FileUtils::mkdir_p 'results'
task :default => 'all'
Cucumber::Rake::Task.new(:all, 'Runs all tests') do |t|
t.cucumber_opts = "features/*.feature
--format html --out=results/all-report-#{Time.now.strftime("%Y-%m-%d-%H-%M-%S")}.html
--format pretty --no-source
--format rerun --out results/all-rerun.txt
--tag @regression"
end
Cucumber::Rake::Task.new(:smoke, 'Runs the smoke test suite') do |t|
t.cucumber_opts = "features/*.feature
--format html --out=results/smoke-report-#{Time.now.strftime("%Y-%m-%d-%H-%M-%S")}.html
--format pretty --no-source
--format rerun --out results/smoke-rerun.txt
--tag @smoke"
end
Cucumber::Rake::Task.new(:jenkins_all, 'Run all tests for Jenkins CI') do |t|
t.cucumber_opts = "features/*.feature
--format html --out=results/jenkins-all-report-#{Time.now.strftime("%Y-%m-%d-%H-%M-%S")}.html
--format pretty --no-source
--format rerun --out results/jenkins-rerun.txt
--tag @regression
'HEADLESS=true'"
end
Cucumber::Rake::Task.new(:regression, 'Runs tests tagged as regression') do |t|
t.cucumber_opts = "features/*
--format html --out=results/regression-report.html
--format pretty --no-source
--format rerun --out results/regression-rerun.txt
--tag @regression"
end
Cucumber::Rake::Task.new(:desktop, 'Runs test tagged as desktop') do |t|
t.cucumber_opts = "features/*
--format html --out=results/desktop-report.html
--format pretty --no-source
--format rerun --out results/desktop-rerun.txt
--tag @desktop"
end
Cucumber::Rake::Task.new(:mobile, 'Runs test tagged as mobile') do |t|
t.cucumber_opts = "features/*
--format html --out=results/mobile-report.html
--format pretty --no-source
--format rerun --out results/mobile-rerun.txt
--tag @mobile"
end
Cucumber::Rake::Task.new(:tablet, 'Runs test tagged as tablet') do |t|
t.cucumber_opts = "features/*
--format html --out=results/tablet-report.html
--format pretty --no-source
--format rerun --out results/tablet-rerun.txt
--tag @tablet"
end