Class: Cucumber::Formatter::LegacyApi::Adapter::ScenarioOutlinePrinter
- Inherits:
-
Struct
- Object
- Struct
- Cucumber::Formatter::LegacyApi::Adapter::ScenarioOutlinePrinter
- Extended by:
- Forwardable
- Defined in:
- lib/cucumber/formatter/legacy_api/adapter.rb
Instance Method Summary collapse
- #after ⇒ Object
- #after_test_case(test_case, result) ⇒ Object
- #before ⇒ Object
- #examples_table(examples_table) ⇒ Object
- #examples_table_row(node, before_hook_results) ⇒ Object
- #step_invocation(step_invocation, source) ⇒ Object
Instance Method Details
#after ⇒ Object
617 618 619 620 621 622 623 624 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 617 def after @child.after if @child # TODO - the last step result might not accurately reflect the # overall scenario result. scenario_outline = last_step_result.scenario_outline(node.name, node.location) formatter.after_feature_element(scenario_outline) self end |
#after_test_case(test_case, result) ⇒ Object
613 614 615 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 613 def after_test_case(test_case, result) @child.after_test_case(test_case, result) end |
#before ⇒ Object
589 590 591 592 593 594 595 596 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 589 def before formatter.before_feature_element(node) Ast::Comments.new(node.comments).accept(formatter) Ast::Tags.new(node.).accept(formatter) formatter.scenario_name node.keyword, node.legacy_conflated_name_and_description, node.location.to_s, indent.of(node) OutlineStepsPrinter.new(formatter, configuration, indent).print(node) self end |
#examples_table(examples_table) ⇒ Object
604 605 606 607 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 604 def examples_table(examples_table) @child ||= ExamplesArrayPrinter.new(formatter, configuration).before @child.examples_table(examples_table) end |
#examples_table_row(node, before_hook_results) ⇒ Object
609 610 611 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 609 def examples_table_row(node, before_hook_results) @child.examples_table_row(node, before_hook_results) end |
#step_invocation(step_invocation, source) ⇒ Object
598 599 600 601 602 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 598 def step_invocation(step_invocation, source) node, result = source.step, source.step_result @last_step_result = result @child.step_invocation(step_invocation, source) end |