Permalink
Browse files

add rerun config for cukes

  • Loading branch information...
1 parent 22e2a64 commit 5b832827eba30d2abc7599e1cfb4eecde5f4b6ac @dchelimsky dchelimsky committed Feb 6, 2010
Showing with 8 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +7 −3 cucumber.yml
View
@@ -6,3 +6,4 @@ rdoc
pkg
tmp
tags
+rerun.txt
View
@@ -1,3 +1,7 @@
-default: features -r features -t ~@wip
-wip: features -r features -t @wip
-all: features -r features
+<%
+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} --require features --format rerun --out rerun.txt --strict --tags ~@wip"
+%>
+default: <%= std_opts %>
+wip: --tags @wip:3 --wip features

0 comments on commit 5b83282

Please sign in to comment.