Skip to content

Instantly share code, notes, and snippets.

@manlycode
Created April 23, 2010 19:23
Show Gist options
  • Save manlycode/377034 to your computer and use it in GitHub Desktop.
Save manlycode/377034 to your computer and use it in GitHub Desktop.
<%
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: <%= std_opts %>
wip: --tags @wip:3 --wip features
autospec-all: --require features --require lib --format progress features
autospec: --require features --require lib features
default: --format pretty --tags ~@integration
html: --format html --out features.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment