Class: Cucumber::Formatter::LegacyApi::Adapter::ExpandTableRowPrinter
Instance Method Summary
collapse
#after_step_hook, #after_test_case
#after_hook, #after_hook_results
Instance Method Details
880
881
882
883
884
885
886
887
|
# 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
|
862
863
864
865
|
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 862
def before
before_hook_results.accept(formatter)
self
end
|
#step_invocation(step_invocation, source) ⇒ Object
867
868
869
870
871
872
873
874
875
876
877
878
|
# 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
|