-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathRakefile
68 lines (56 loc) · 1.63 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
65
66
67
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'parallel_tests/tasks'
RSpec::Core::RakeTask.new(:unit)
Cucumber::Rake::Task.new(:e2e) do |t|
t.cucumber_opts = "features --tags ~@ignore --format pretty"
end
task :headless do
ENV['USE_HEADLESS_MODE'] = "true"
ENV['RUN_TESTS_PARALLELY'] = "false"
ENV['TEST_AGAINST_QA_ENV'] = "false"
Rake::Task['e2e'].invoke
end
task :chrome do
ENV['USE_HEADLESS_MODE'] = "false"
ENV['RUN_TESTS_PARALLELY'] = "false"
ENV['TEST_AGAINST_QA_ENV'] = "false"
Rake::Task['e2e'].invoke
end
task :headlessparallel do
ENV['USE_HEADLESS_MODE'] = "true"
ENV['RUN_TESTS_PARALLELY'] = "true"
ENV['TEST_AGAINST_QA_ENV'] = "false"
Rake::Task['parallel:features'].invoke
end
task :chromeparallel do
ENV['USE_HEADLESS_MODE'] = "false"
ENV['RUN_TESTS_PARALLELY'] = "true"
ENV['TEST_AGAINST_QA_ENV'] = "false"
Rake::Task['parallel:features'].invoke
end
task :qa_chrome do
ENV['USE_HEADLESS_MODE'] = "false"
ENV['RUN_TESTS_PARALLELY'] = "false"
ENV['TEST_AGAINST_QA_ENV'] = "true"
Rake::Task['e2e'].invoke
end
task :qa_headless do
ENV['USE_HEADLESS_MODE'] = "true"
ENV['RUN_TESTS_PARALLELY'] = "false"
ENV['TEST_AGAINST_QA_ENV'] = "true"
Rake::Task['e2e'].invoke
end
task :qa_chromeparallel do
ENV['USE_HEADLESS_MODE'] = "false"
ENV['RUN_TESTS_PARALLELY'] = "true"
ENV['TEST_AGAINST_QA_ENV'] = "true"
Rake::Task['parallel:features'].invoke
end
task :qa_headlessparallel do
ENV['USE_HEADLESS_MODE'] = "true"
ENV['RUN_TESTS_PARALLELY'] = "true"
ENV['TEST_AGAINST_QA_ENV'] = "true"
Rake::Task['parallel:features'].invoke
end
task :default => [:unit, :headless]