Class: Cucumber::Formatter::LegacyApi::Adapter::ExamplesTablePrinter
- Inherits:
-
Struct
- Object
- Struct
- Cucumber::Formatter::LegacyApi::Adapter::ExamplesTablePrinter
show all
- Extended by:
- Forwardable
- Defined in:
- lib/cucumber/formatter/legacy_api/adapter.rb
Defined Under Namespace
Classes: ExampleTableRow, LegacyTable
Instance Method Summary
collapse
Instance Method Details
#after ⇒ Object
730
731
732
733
734
735
|
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 730
def after
@child.after if @child
formatter.after_outline_table(node)
formatter.after_examples(node)
self
end
|
#after_test_case(*args) ⇒ Object
726
727
728
|
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 726
def after_test_case(*args)
@child.after_test_case(*args)
end
|
#before ⇒ Object
702
703
704
705
706
707
708
709
710
711
712
|
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 702
def before
formatter.before_examples(node)
Ast::Comments.new(node.).accept(formatter)
Ast::Tags.new(node.tags).accept(formatter)
formatter.examples_name(node.keyword, node.legacy_conflated_name_and_description)
formatter.before_outline_table(legacy_table)
if !configuration.expand?
HeaderTableRowPrinter.new(formatter, ExampleTableRow.new(node.), Ast::Node.new).before.after
end
self
end
|
#examples_table_row(examples_table_row, before_hook_results) ⇒ Object
714
715
716
717
718
719
720
721
722
723
724
|
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 714
def examples_table_row(examples_table_row, before_hook_results)
return if examples_table_row == @current
@child.after if @child
row = ExampleTableRow.new(examples_table_row)
@child = if !configuration.expand?
TableRowPrinter.new(formatter, row, before_hook_results).before
else
ExpandTableRowPrinter.new(formatter, row, before_hook_results).before
end
@current = examples_table_row
end
|