in progress fix for scenario outlines

This commit is contained in:
John Bintz 2014-04-18 10:53:40 -04:00
parent baab37f444
commit a855fd0795
1 changed files with 10 additions and 1 deletions

View File

@ -11,7 +11,16 @@ After do |s|
if s.failed? || s.status == :pending if s.failed? || s.status == :pending
if ENV['INPROGRESS'] if ENV['INPROGRESS']
begin begin
in_progress << s.feature.file_colon_line.gsub(/\:\d+/, ":" + s.line.to_s) source = s
if source.respond_to?(:scenario_outline)
source = source.scenario_outline
end
if source.respond_to?(:feature)
feature = source.feature
in_progress << feature.file_colon_line.gsub(/\:\d+/, ":" + feature.line.to_s)
end
rescue => e rescue => e
puts e.message puts e.message
puts e.backtrace.join("\n") puts e.backtrace.join("\n")