Skip to content

Instantly share code, notes, and snippets.

@awesome
Created January 5, 2010 07:31
Show Gist options
  • Save awesome/269221 to your computer and use it in GitHub Desktop.
Save awesome/269221 to your computer and use it in GitHub Desktop.
turn on color for output; cucumber (0.5.3), cucumber-rails (0.2.2)
<%
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"
%>
# ORIGINAL:
#default: <%= std_opts %>
#wip: --tags @wip:3 --wip features
# PATCH:
default: <%= std_opts %> --color
wip: --tags @wip:3 --wip features --color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment