forked from vcr/vcr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.yml
17 lines (15 loc) · 850 Bytes
/
cucumber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%
base_opts = '--require features/step_definitions --require features/support'
std_opts = "--format progress --strict"
std_opts << " --backtrace" if ENV["CI"]
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format pretty #{rerun}"
exclusions = []
exclusions << "--tags ~@exclude-#{RUBY_VERSION.split('.').first(2).join}"
exclusions << "--tags ~@exclude-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
exclusions << "--tags ~@exclude-#{RUBY_ENGINE}" if defined?(RUBY_ENGINE)
exclusions = exclusions.join(' ')
%>
default: <%= base_opts %> <%= std_opts %> --tags ~@wip <%= exclusions %> features
wip: <%= base_opts %> --tags @wip <%= exclusions %> features
rerun: <%= base_opts %> <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip <%= exclusions %>