-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile
33 lines (28 loc) · 993 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
def run_tests(platform, browser, version, junit_dir)
system("platform=\"#{platform}\" browserName=\"#{browser}\" version=\"#{version}\" JUNIT_DIR=\"#{junit_dir}\" parallel_cucumber features -n 20")
end
# Windows 8.1, Chrome 43
task :windows_8_1_chrome_43 do
run_tests('Windows 8.1', 'chrome', '43', 'junit_reports/windows_8_1_chrome_43')
end
# Windows 7, Firefox 40
task :windows_7_firefox_40 do
run_tests('Windows 7', 'firefox', '40', 'junit_reports/windows_7_firefox40')
end
# OS X 10.9 Chrome 45
task :os_x_10_9_chrome_45 do
run_tests('OS X 10.9', 'chrome', '45', 'junit_reports/os_x_10_9_chrome_45')
end
# Windows XP Firefox 39
task :windows_xp_firefox_39 do
run_tests('Windows XP', 'firefox', '39', 'junit_reports/windows_xp_firefox_39')
end
# Task to run all the above configurations in parallel
multitask :test_sauce => [
:windows_8_1_chrome_43,
:windows_7_firefox_40,
:os_x_10_9_chrome_45,
:windows_xp_firefox_39
] do
puts 'Running automation'
end