Class: Cucumber::Formatter::LegacyApi::RuntimeFacade

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration

Returns:

  • (Object)

    the current value of configuration



8
9
10
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 8

def configuration
  @configuration
end

#resultsObject

Returns the value of attribute results

Returns:

  • (Object)

    the current value of results



8
9
10
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 8

def results
  @results
end

#support_codeObject

Returns the value of attribute support_code

Returns:

  • (Object)

    the current value of support_code



8
9
10
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 8

def support_code
  @support_code
end

Instance Method Details

#scenarios(status = nil) ⇒ Object



20
21
22
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 20

def scenarios(status = nil)
  results.scenarios(status)
end

#snippet_text(step_keyword, step_name, multiline_arg) ⇒ Object

:nodoc:



13
14
15
16
17
18
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 13

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



24
25
26
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 24

def steps(status = nil)
  results.steps(status)
end

#unmatched_step_definitionsObject



9
10
11
# File 'lib/cucumber/formatter/legacy_api/runtime_facade.rb', line 9

def unmatched_step_definitions
  support_code.unmatched_step_definitions
end