cucumber.yml 808 Bytes
Newer Older
1
<%
2 3 4 5 6 7 8
rerun  = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
format = ENV['CUCUMBER_FORMAT'] || 'pretty'

# option lists for the `cucumber` command
rerun_opts = rerun.to_s.strip.empty? ? "--format #{format} features" : "--format #{format} #{rerun}"
std_opts   = "--format #{format} --strict --tags ~@wip --tags ~@screenshots"
screenshot_opts  = "--require features --format pretty"
9
%>
10 11

# 'normal' test runs
Alec Leamas's avatar
Alec Leamas committed
12 13
default: <%= std_opts %> -r features
wip: -r features --tags @wip:3 --wip features
14 15 16 17 18 19
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip --tags ~@screenshots

# screenshot feature
ref_screens: "<%= screenshot_opts %> --tags @reference-screenshots"
cmp_screens: "<%= screenshot_opts %> --tags @comparison-screenshots"
all_screens: "<%= screenshot_opts %> --tags @screenshots"