Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 12 lines (11 sloc) 0.707 kb
1 2 3 4 5 6 7 8 9 10 11 12
<%
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 %>
Something went wrong with that request. Please try again.