diff --git a/lib/cucumber/formatter/fuubar.rb b/lib/cucumber/formatter/fuubar.rb index 2314243..c9c1570 100644 --- a/lib/cucumber/formatter/fuubar.rb +++ b/lib/cucumber/formatter/fuubar.rb @@ -40,15 +40,6 @@ def after_background(background) def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line) return if @in_background || status == :skipped @state = :red if status == :failed - if exception and [:failed, :undefined].include? status - @io.print "\e[K" if colors_enabled? - @issues_count += 1 - @io.puts - @io.puts "#{@issues_count})" - print_exception(exception, status, 2) - @io.puts - @io.flush - end progress(status) end @@ -72,6 +63,16 @@ def after_table_row(table_row) end end + def exception(exception, status) + @io.print "\e[K" if colors_enabled? + @issues_count += 1 + @io.puts + @io.puts "#{@issues_count})" + print_exception(exception, status, 2) + @io.puts + @io.flush + end + protected def state @state ||= :green