2010-01-13 20:39:28 +01:00
|
|
|
<%
|
|
|
|
|
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
2010-02-12 12:35:19 +01:00
|
|
|
rerun_opts = rerun.to_s.strip.empty? ? "--format progress " : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
2010-02-02 22:52:32 +01:00
|
|
|
requires = "-r features/support/env.rb -r features/step_definitions"
|
|
|
|
|
std_opts = "#{rerun_opts} #{requires} --format rerun --out rerun.txt --strict --tags ~@wip"
|
2010-01-13 20:39:28 +01:00
|
|
|
%>
|
2010-01-13 21:41:21 +01:00
|
|
|
default: <%= std_opts %> --tags ~@selenium
|
2010-02-02 22:52:32 +01:00
|
|
|
selenium: <%= std_opts %> --tags @selenium -r features/support/selenium.rb
|
2010-01-13 20:39:28 +01:00
|
|
|
wip: --tags @wip:3 --wip features
|