simplify cucumber runtime settings

This commit is contained in:
Jacques Crocker 2010-07-29 13:26:45 -07:00
parent 42cc763553
commit 84c9831db6

View File

@ -1,8 +1,2 @@
<%
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}"
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --strict --tags ~@wip"
%>
default: <%= std_opts %> features
wip: --tags @wip:3 --wip features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
default: features --format pretty --color --tags ~@wip
wip: features --tags @wip