summaryrefslogtreecommitdiff
path: root/config/cucumber.yml
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-08 11:00:40 +0200
committerAzul <azul@leap.se>2014-07-14 10:49:39 +0200
commit303ec07901af3798efc873cbe050aa5cb4ba7655 (patch)
tree4c9a2d33d2bf1b24233d115e74368a533acf7666 /config/cucumber.yml
parent4dbfdf30c3235eb19e4f0ad959f65125ed18b39a (diff)
use cucumber; initial ConfigsController
Diffstat (limited to 'config/cucumber.yml')
-rw-r--r--config/cucumber.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/cucumber.yml b/config/cucumber.yml
new file mode 100644
index 0000000..19b288d
--- /dev/null
+++ b/config/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'] || 'pretty'} --strict --tags ~@wip"
+%>
+default: <%= std_opts %> features
+wip: --tags @wip:3 --wip features
+rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip