-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
102 lines (88 loc) · 2.76 KB
/
Rakefile
File metadata and controls
102 lines (88 loc) · 2.76 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Author: Daniel Cabero
require 'bundler/gem_tasks'
require 'rubygems'
require 'rspec/core'
require 'rspec/core/rake_task'
require 'cucumber'
require 'cucumber/rake/task'
require 'rspec'
# Task default for the run in the travis CI.
task :spec do
RSpec::Core::RakeTask.new(:spec)
task default: :spec
Rake::Task[:spec].invoke
end
# Task for the generate the report of the all features files.
task :@all do
Cucumber::Rake::Task.new :all do |t|
t.profile = 'default'
sh 'cucumber --format PrettyFace::Formatter::Html --out test_reports/all.html'
end
end
# Task for the generate the report of the smoke features files.
task(:@smoke) {
Cucumber::Rake::Task.new :smoke do |t|
t.profile = 'default'
sh 'cucumber --tags @smoke --format PrettyFace::Formatter::Html --out test_reports/smoke.html'
end
}
# Task for the generate the report of the CRUD features files.
task :@crud do
Cucumber::Rake::Task.new :crud do |t|
t.profile = 'default'
sh 'cucumber --tags @crud --format PrettyFace::Formatter::Html --out test_reports/crud.html'
end
end
# Task for the generate the report of the Functional features files.
task :@functional do
Cucumber::Rake::Task.new :functional do |t|
t.profile = 'default'
sh 'cucumber --tags @functional --format PrettyFace::Formatter::Html --out test_reports/functional.html'
end
end
task :@positive do
Cucumber::Rake::Task.new :positive do |t|
t.profile = 'default'
sh 'cucumber --tags @positive --format PrettyFace::Formatter::Html --out test_reports/positive.html'
end
end
task :@negative do
Cucumber::Rake::Task.new :negative do |t|
t.profile = 'default'
sh 'cucumber --tags @negative --format PrettyFace::Formatter::Html --out test_reports/negative.html'
end
end
task :@rm do
Cucumber::Rake::Task.new :rm do |t|
t.profile = 'default'
sh 'cucumber --tags @rm --format PrettyFace::Formatter::Html --out test_reports/rm.html'
end
end
task :@rooms do
Cucumber::Rake::Task.new :rooms do |t|
t.profile = 'default'
sh 'cucumber --tags @rooms --format PrettyFace::Formatter::Html --out test_reports/rooms.html'
end
end
task :@services do
Cucumber::Rake::Task.new :services do |t|
t.profile = 'default'
sh 'cucumber --tags @services --format PrettyFace::Formatter::Html --out test_reports/services.html'
end
end
task :@meetings do
Cucumber::Rake::Task.new :meetings do |t|
t.profile = 'default'
sh 'cucumber --tags @meetings --format PrettyFace::Formatter::Html --out test_reports/meetings.html'
end
end
task :@issue do
Cucumber::Rake::Task.new :issue do |t|
t.profile = 'default'
sh 'cucumber --tags @issue --format PrettyFace::Formatter::Html --out test_reports/issue.html'
end
end
# the execute default for the clean.
task(:default).clear
#
task default: :spec