forked from adelasofia/developers.redhat.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.yml
29 lines (23 loc) · 1.24 KB
/
cucumber.yml
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
<%
test_env_no = ENV['TEST_ENV_NUMBER'] || ''
test_env_no = '1' if test_env_no == ''
$output_folder = "out/#{ENV['BUILD_NUMBER'] || 'logs'}"
html_output = "#{$output_folder}/report#{test_env_no}.html"
html_rerun_output = "#{$output_folder}/report_rerun.html"
Dir.mkdir("out") rescue ""
Dir.mkdir($output_folder) rescue ""
default_options = "-r _cucumber/features/ --strict -f pretty"
exclusions = "-t ~@wip -t ~@todo"
exclusions_nonparallel = "-t ~@wip -t ~@todo"
exclusions_in_progress = "-t ~@wip -t ~@todo"
slow = "-r _cucumber/features/ --format pretty"
remote = "-r _cucumber/features/ --format ParallelTests::Cucumber::FailuresLogger --out _cucumber/parallel_cucumber_failures.log -f pretty"
%>
default: <%= default_options %> <%= exclusions %>
html: --format --out reports/test-report.html
wip: -t @wip
smoke: -t @smoke
parallel_html: --format html --out _cucumber/reports/process<%= ENV['TEST_ENV_NUMBER'] %>.html
pretty: -f pretty
parallel: -r _cucumber/features/ --format pretty --profile parallel_html --format ParallelTests::Cucumber::FailuresLogger --out cucumber_failures.log
parallel_smoke: --profile smoke -r _cucumber/features/ --format pretty --profile parallel_html --format ParallelTests::Cucumber::FailuresLogger --out cucumber_failures.log