|
|
|
@ -27,10 +27,11 @@ |
|
|
|
|
#++ |
|
|
|
|
|
|
|
|
|
<% |
|
|
|
|
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : "" |
|
|
|
|
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" |
|
|
|
|
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --tags ~@wip" |
|
|
|
|
rerun_file = "tmp/cucumber-rerun.txt" |
|
|
|
|
rerun = File.file?(rerun_file) ? IO.read(rerun_file) : "" |
|
|
|
|
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}" |
|
|
|
|
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} --tags ~@wip" |
|
|
|
|
%> |
|
|
|
|
default: <%= std_opts %> features |
|
|
|
|
wip: --tags @wip:3 --wip features |
|
|
|
|
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --tags ~@wip |
|
|
|
|
rerun: <%= rerun_opts %> --format rerun --out <%= rerun_file %> --tags ~@wip |
|
|
|
|