Class: Cucumber::Formatter::HTML
- Inherits:
-
MessageBuilder
- Object
- MessageBuilder
- Cucumber::Formatter::HTML
- Includes:
- Io
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb
Constant Summary
Constants included from Messages::TimeConversion
Messages::TimeConversion::NANOSECONDS_PER_SECOND
Instance Method Summary collapse
-
#initialize(config) ⇒ HTML
constructor
A new instance of HTML.
- #output_envelope(envelope) ⇒ Object
Methods included from Io
ensure_dir, ensure_file, ensure_io, included, io?, url?
Methods inherited from MessageBuilder
Methods included from Messages::TimeConversion
#duration_to_seconds, #seconds_to_duration, #time_to_timestamp, #timestamp_to_time
Constructor Details
#initialize(config) ⇒ HTML
Returns a new instance of HTML.
10 11 12 13 14 15 16 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb', line 10 def initialize(config) @io = ensure_io(config.out_stream, config.error_stream) @html_formatter = Cucumber::HTMLFormatter::Formatter.new(@io) @html_formatter. super(config) end |
Instance Method Details
#output_envelope(envelope) ⇒ Object
18 19 20 21 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/formatter/html.rb', line 18 def output_envelope(envelope) @html_formatter.(envelope) @html_formatter. if envelope.test_run_finished end |