Method: Cucumber::Formatter::Console#print_elements
- Defined in:
- lib/cucumber/formatter/console.rb
#print_elements(elements, status, kind) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/cucumber/formatter/console.rb', line 45 def print_elements(elements, status, kind) if elements.any? @io.puts(format_string("(::) #{status} #{kind} (::)", status)) @io.puts @io.flush end elements.each_with_index do |element, i| if status == :failed print_exception(element.exception, 0) else @io.puts(format_string(element.backtrace_line, status)) end @io.puts @io.flush end end |