Class: Cucumber::Formatter::LegacyApi::Adapter::FeaturesPrinter

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/cucumber/formatter/legacy_api/adapter.rb

Instance Method Summary collapse

Instance Method Details

#afterObject


134
135
136
137
138
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 134

def after
  @child.after if @child
  formatter.after_features Ast::Features.new(timer.sec)
  self
end

#after_test_case(*args) ⇒ Object


110
111
112
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 110

def after_test_case(*args)
  @child.after_test_case(*args)
end

#after_test_step(test_step, result) ⇒ Object


106
107
108
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 106

def after_test_step(test_step, result)
  @child.after_test_step(test_step, result)
end

#beforeObject


91
92
93
94
95
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 91

def before
  timer.start
  formatter.before_features(nil)
  self
end

#before_test_case(test_case) ⇒ Object


97
98
99
100
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 97

def before_test_case(test_case)
  test_case.describe_source_to(self)
  @child.before_test_case(test_case)
end

#before_test_step(*args) ⇒ Object


102
103
104
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 102

def before_test_step(*args)
  @child.before_test_step(*args)
end

#embed(src, mime_type, label) ⇒ Object


144
145
146
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 144

def embed(src, mime_type, label)
  @child.embed(src, mime_type, label)
end

#examples_table(node) ⇒ Object


128
129
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 128

def examples_table(node, *)
end

#examples_table_row(node) ⇒ Object


131
132
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 131

def examples_table_row(node, *)
end

#feature(node) ⇒ Object


114
115
116
117
118
119
120
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 114

def feature(node, *)
  if node != @current_feature
    @child.after if @child
    @child = FeaturePrinter.new(formatter, results, matches, config, node).before
    @current_feature = node
  end
end

#puts(messages) ⇒ Object


140
141
142
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 140

def puts(messages)
  @child.puts(messages)
end

#scenario(node) ⇒ Object


122
123
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 122

def scenario(node, *)
end

#scenario_outline(node) ⇒ Object


125
126
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 125

def scenario_outline(node, *)
end