Class: Cucumber::Formatter::LegacyApi::RuntimeFacade
- Inherits:
-
Struct
- Object
- Struct
- Cucumber::Formatter::LegacyApi::RuntimeFacade
- Defined in:
- lib/cucumber/formatter/legacy_api/runtime_facade.rb
Overview
This is what’s passed to the constructor of the formatters
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#results ⇒ Object
Returns the value of attribute results.
-
#support_code ⇒ Object
Returns the value of attribute support_code.
Instance Method Summary collapse
- #scenarios(status = nil) ⇒ Object
-
#snippet_text(step_keyword, step_name, multiline_arg) ⇒ Object
:nodoc:.
- #steps(status = nil) ⇒ Object
- #unmatched_step_definitions ⇒ Object
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration
9 10 11 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 9 def configuration @configuration end |
#results ⇒ Object
Returns the value of attribute results
9 10 11 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 9 def results @results end |
#support_code ⇒ Object
Returns the value of attribute support_code
9 10 11 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 9 def support_code @support_code end |
Instance Method Details
#scenarios(status = nil) ⇒ Object
21 22 23 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 21 def scenarios(status = nil) results.scenarios(status) end |
#snippet_text(step_keyword, step_name, multiline_arg) ⇒ Object
:nodoc:
14 15 16 17 18 19 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 14 def snippet_text(step_keyword, step_name, multiline_arg) #:nodoc: keyword = Cucumber::Gherkin::I18n.code_keyword_for(step_keyword).strip configuration.snippet_generators.map { |generator| generator.call(keyword, step_name, multiline_arg, configuration.snippet_type) }.join("\n") end |
#steps(status = nil) ⇒ Object
25 26 27 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 25 def steps(status = nil) results.steps(status) end |
#unmatched_step_definitions ⇒ Object
10 11 12 |
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 10 def unmatched_step_definitions support_code.unmatched_step_definitions end |