<%%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip"
%>
default: <%= spork? ? '--drb ' : '' %><%%= std_opts %>
wip: <%= spork? ? '--drb ' : '' %>--tags @wip:3 --wip features

<%%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
std_opts = "--format #{ENV['CUCUMBER_FORMAT']} || 'progress'} --strict --tags ~@wip"
%>
default: <%= spork? ? '--drb ' : '' %><%%= std_opts %> features
wip: <%= spork? ? '--drb ' : '' %>--tags @wip:3 --wip features
rerun: <%= spork? ? '--drb ' : '' %><%%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip

Move rerun.txt to the rerun profile
Move rerun.txt to the rerun profile
