Permalink
Browse files

add in a cucumber.yml for easy managing of options

  • Loading branch information...
1 parent e3c71f5 commit a539506a5e8b222337da3e76caf4e4665194a53d @jackdempsey committed Sep 16, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 cucumber.yml
View
8 cucumber.yml
@@ -0,0 +1,8 @@
+<%
+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'] || 'progress'} --strict --tags ~@wip"
+%>
+default: <%= std_opts %> -r features
+wip: --tags @wip:3 --wip -r features
+rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip

0 comments on commit a539506

Please sign in to comment.