cucumber.yml

Summary

Maintainability
Test Coverage
<%
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 'not @exclude-#{RUBY_VERSION.split('.').first(2).join}'"
exclusions << "--tags 'not @exclude-#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}'"
exclusions << "--tags 'not @exclude-#{RUBY_ENGINE}'" if defined?(RUBY_ENGINE)
exclusions = exclusions.join(' ')
%>
default: <%= base_opts %> <%= std_opts %> --tags 'not @wip' <%= exclusions %> features
wip:     <%= base_opts %> --tags 'not wip' <%= exclusions %> features
rerun:   <%= base_opts %> <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags 'not @wip' <%= exclusions %>