blob: 836931b61a2d3478dc8ab1d08ad2c21a9c55a9e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
if ENV['JOB_NAME']
ci_opts = "--format json --out cucumber.json --format html --out cucumber.html"
end
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{ci_opts} --strict --tags ~@wip"
%>
default: <%= std_opts %> features
wip: --tags @wip:3 --wip features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|