lib/cucumber/formatter/pretty.rb in kosmas58-cucumber-0.3.93.1 vs lib/cucumber/formatter/pretty.rb in kosmas58-cucumber-0.3.94

- old
+ new

@@ -46,18 +46,18 @@ def visit_comment(comment) comment.accept(self) end def visit_comment_line(comment_line) - @io.puts(comment_line.indent(@indent)) + @io.puts(comment_line.indent(@indent)) @io.flush end def visit_tags(tags) tags.accept(self) if @indent == 1 - @io.puts + @io.puts @io.flush end end def visit_tag_name(tag_name) @@ -72,10 +72,11 @@ @io.puts @io.flush end def visit_feature_element(feature_element) + record_tag_occurrences(feature_element, @options) @indent = 2 @scenario_indent = 2 super @io.puts @io.flush @@ -158,11 +159,11 @@ @col_index = 0 @io.print ' |'.indent(@indent-2) super @io.puts if table_row.exception && !@exceptions.index(table_row.exception) - print_exception(table_row.exception, :failed, @indent) + print_exception(table_row.exception, :failed, @indent) end end def visit_py_string(string) s = %{"""\n#{string}\n"""}.indent(@indent) @@ -185,18 +186,22 @@ @io.print(' ' + format_string("#{prefix}#{padded}", status) + ::Term::ANSIColor.reset(" |")) @io.flush end private - def cell_prefix(status) @prefixes[status] end + def cell_prefix(status) + @prefixes[status] + end + def print_summary(features) print_stats(features) print_snippets(@options) print_passing_wip(@options) + print_tag_limit_warnings(@options) end end end end