Class: Cucumber::Formatter::LegacyApi::Ast::StepInvocation
- Extended by:
- Forwardable
- Defined in:
- lib/cucumber/formatter/legacy_api/ast.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#embeddings ⇒ Object
Returns the value of attribute embeddings.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#indent ⇒ Object
Returns the value of attribute indent.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#status ⇒ Object
Returns the value of attribute status.
-
#step ⇒ Object
Returns the value of attribute step.
-
#step_match ⇒ Object
Returns the value of attribute step_match.
Instance Method Summary collapse
- #accept(formatter) ⇒ Object
- #actual_keyword(previous_step_keyword = nil) ⇒ Object
- #backtrace_line ⇒ Object
- #dom_id ⇒ Object
- #failed? ⇒ Boolean
- #file_colon_line ⇒ Object
- #passed? ⇒ Boolean
- #step_invocation ⇒ Object
- #step_result_attributes ⇒ Object
Instance Attribute Details
#background ⇒ Object
Returns the value of attribute background
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def background @background end |
#duration ⇒ Object
Returns the value of attribute duration
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def duration @duration end |
#embeddings ⇒ Object
Returns the value of attribute embeddings
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def @embeddings end |
#exception ⇒ Object
Returns the value of attribute exception
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def exception @exception end |
#indent ⇒ Object
Returns the value of attribute indent
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def indent @indent end |
#messages ⇒ Object
Returns the value of attribute messages
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def @messages end |
#status ⇒ Object
Returns the value of attribute status
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def status @status end |
#step ⇒ Object
Returns the value of attribute step
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def step @step end |
#step_match ⇒ Object
Returns the value of attribute step_match
96 97 98 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 96 def step_match @step_match end |
Instance Method Details
#accept(formatter) ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 109 def accept(formatter) formatter.before_step(self) Ast::Comments.new(step.comments).accept(formatter) .each { || formatter.puts() } .each { || .send_to_formatter(formatter) } formatter.before_step_result *step_result_attributes print_step_name(formatter) Ast::MultilineArg.for(multiline_arg).accept(formatter) print_exception(formatter) formatter.after_step_result *step_result_attributes formatter.after_step(self) end |
#actual_keyword(previous_step_keyword = nil) ⇒ Object
143 144 145 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 143 def actual_keyword(previous_step_keyword = nil) step.actual_keyword(previous_step_keyword) end |
#backtrace_line ⇒ Object
151 152 153 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 151 def backtrace_line step_match.backtrace_line end |
#dom_id ⇒ Object
139 140 141 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 139 def dom_id end |
#failed? ⇒ Boolean
131 132 133 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 131 def failed? status != :passed end |
#file_colon_line ⇒ Object
147 148 149 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 147 def file_colon_line location.to_s end |
#passed? ⇒ Boolean
135 136 137 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 135 def passed? status == :passed end |
#step_invocation ⇒ Object
155 156 157 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 155 def step_invocation self end |
#step_result_attributes ⇒ Object
122 123 124 125 126 127 128 129 |
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 122 def step_result_attributes legacy_multiline_arg = if multiline_arg.kind_of?(Core::Ast::EmptyMultilineArgument) nil else step.multiline_arg end [keyword, step_match, legacy_multiline_arg, status, exception, source_indent, background, file_colon_line] end |