2017-07-06 15:07:05 +08:00
|
|
|
<%
|
|
|
|
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
2019-08-22 19:38:02 +08:00
|
|
|
rerun = rerun.strip.gsub /\s/, ' '
|
|
|
|
rerun_opts = rerun.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
|
|
|
std_opts = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags 'not @wip'"
|
2017-07-06 15:07:05 +08:00
|
|
|
%>
|
|
|
|
default: <%= std_opts %> features
|
|
|
|
wip: --tags @wip:3 --wip features
|
2019-08-22 19:38:02 +08:00
|
|
|
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags 'not @wip'
|