<% rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" rerun_opts = rerun.to_s.strip.empty? ? "--format progress " : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" requires = "-r features/support/env.rb -r features/step_definitions" std_opts = "#{rerun_opts} #{requires} --format rerun --out rerun.txt --strict --tags ~@wip" %> default: <%= std_opts %> --tags ~@selenium selenium: <%= std_opts %> --tags @selenium -r features/support/selenium.rb wip: --tags @wip:3 --wip features