myronmarston/vcr

View on GitHub
cucumber.yml

Summary

Maintainability
Test Coverage
<%
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}"
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'Cucumber::Formatter::Fuubar'} --strict"

exclusions = ["--tags ~@exclude-#{RUBY_VERSION.split('.').first(2).join}"].tap do |a|
  a << "--tags ~@exclude-#{RUBY_ENGINE}" if defined?(RUBY_ENGINE)
end.join(' ')
%>
default: <%= std_opts %> --tags ~@wip <%= exclusions %> features
wip: --tags @wip <%= exclusions %> features
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip <%= exclusions %>