-
Notifications
You must be signed in to change notification settings - Fork 0
/
cucumber.yml
16 lines (14 loc) · 940 Bytes
/
cucumber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%
base_opts = '--require features/step_definitions --require features/support'
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'Cucumber::Formatter::Fuubar'} --strict"
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'Cucumber::Formatter::Fuubar'} features" : "--format #{ENV['CUCUMBER_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 %>