Skip to content

Instantly share code, notes, and snippets.

@hakanensari
Created February 11, 2011 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakanensari/822965 to your computer and use it in GitHub Desktop.
Save hakanensari/822965 to your computer and use it in GitHub Desktop.
Cucumber, play nicely with Spork, Guard, and nested folders!
<%
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} " + (rerun.to_s.strip.empty? ? 'features' : rerun)
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} " + (ARGV.empty? ? 'features' : '--require features')
%>
default: --drb --strict --tags ~@wip <%= std_opts %>
wip: --drb --tags @wip:3 --wip
rerun: --drb <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment