Skip to content

Instantly share code, notes, and snippets.

@ivar
Created August 8, 2011 20:58
Show Gist options
  • Save ivar/1132727 to your computer and use it in GitHub Desktop.
Save ivar/1132727 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 #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
%>
default: <%= std_opts %> features
wip: --tags @wip:3 --wip features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
# autotest: --color --format Cucumber::Formatter::Timed --strict
# autotest-all: --color --format Cucumber::Formatter::Timed --strict
autotest: --color --format progress --strict
autotest-all: --color --format progress --strict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment