This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cucumber.yml
34 lines (31 loc) · 2.66 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
30
31
32
33
34
<%
default = '-r features --format pretty --color'
debug = "#{default} DEBUG=true"
clean_tags = '--tags ~@draft --tags ~@wip --tags ~@pending --tags ~@utility --tags ~@test-highlights-bug'
clean_default = "#{default} #{clean_tags}"
clean_no_nightly = "#{clean_default} --tags ~@nightly-jobs"
clean_nightly = "#{clean_default} --tags @nightly-jobs"
junit_output = '--format junit --out ../junit'
split_num = format( '%#02d', (ENV['TEST_ENV_NUMBER'] == '' ? 1 : ENV['TEST_ENV_NUMBER']).to_i )
output_split_junit = "#{junit_output}_split#{split_num}"
%>
default: <%= default %> # Run all jobs
debug: <%= debug %> # Run all jobs, with the DEBUG flag on
hare: <%= clean_default %> --tags @hare # Only run @hare-class Scenarios
tortoise: <%= clean_default %> --tags @tortoise # Only run @tortoise-class Scenarios
tortoise_and_hare: <%= clean_default %> --tags @hare,@tortoise # Only run @hare- or @tortoise-class Scenarios
slug: <%= clean_default %> --tags @slug # Only run @slug-class Scenarios
coral: <%= clean_default %> --tags @coral # Only run @coral-class Scenarios
nightly_jobs: <%= clean_nightly %> # Only run Scenarios that Run Nightly Jobs
master: <%= clean_default %> # Run all Scenarios that will run during the nightly report run
master_no_nightly: <%= clean_no_nightly %> # Same as master, except jobs that do not Run Nightly Jobs will be excluded
headless: HEADLESS=true <%= clean_default %> # Same as master, but using a headless browser
headless_junit: HEADLESS=true <%= clean_default %> <%= junit_output %> # Same as headless, but output a jUnit results file in the parent directory
# The following profiles are similiar to their non-'parallel_' versions,
# but are expected to be run using parallel_cucumber and will generate json files.
# Naturally, this means there's only one headless version here.
parallel_master: <%= clean_default %> --tags ~@utility <%= output_split_junit %>
parallel_master_no_nightly: <%= clean_no_nightly %> <%= output_split_junit %>
parallel_headless: HEADLESS=true <%= clean_no_nightly %> <%= output_split_junit %>
headless_junit_nightly: HEADLESS=true <%= clean_nightly %> <%= junit_output %>_split00 # Same as headless_json, but only runs nightly-jobs
clear_batch: <%= default %> --tags @nightly-jobs --tags @utility # Only run utility jobs related to the nightly batch