# File lib/cucumber/formatter/legacy_api/adapter.rb, line 880 def after return if @done @child.after if @child @after_step_hook_result.accept(formatter) if @after_step_hook_result after_hook_results.accept(formatter) @done = true self end
# File lib/cucumber/formatter/legacy_api/adapter.rb, line 862 def before before_hook_results.accept(formatter) self end
# File lib/cucumber/formatter/legacy_api/adapter.rb, line 867 def step_invocation(step_invocation, source) result = source.step_result @table_row ||= legacy_table_row step_invocation.indent.record_width_of(@table_row) if !@scenario_name_printed print_scenario_name(step_invocation, @table_row) @scenario_name_printed = true end step_invocation.accept(formatter) @failed_step = step_invocation if result.status == :failed @status = step_invocation.status unless @status == :failed end
# File lib/cucumber/formatter/legacy_api/adapter.rb, line 891 def print_scenario_name(step_invocation, table_row) formatter.scenario_name table_row.keyword, table_row.name, node.location.to_s, step_invocation.indent.of(table_row) end