2011-06-29 01:05:07 +00:00
|
|
|
<%
|
|
|
|
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}"
|
2011-08-25 21:28:56 +00:00
|
|
|
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --require features --strict --tags ~@wip"
|
2011-06-29 01:05:07 +00:00
|
|
|
%>
|
|
|
|
default: <%= std_opts %> features
|
|
|
|
wip: --tags @wip:3 --wip features
|
|
|
|
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|