Skip to content

Instantly share code, notes, and snippets.

@oleksiilevzhynskyi
Created February 9, 2012 09:30
Show Gist options
  • Save oleksiilevzhynskyi/1778739 to your computer and use it in GitHub Desktop.
Save oleksiilevzhynskyi/1778739 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 = "--strict --tags ~@wip --tags ~@pending"
std_format = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'}"
%>
default: <%= std_opts %> <%= std_format %> features
wip: --tags @wip --tags ~@pending --wip features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
detail: --tags ~@pending --wip features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment