Class: ReportPortal::Cucumber::Formatter
- Inherits:
-
Object
- Object
- ReportPortal::Cucumber::Formatter
- Defined in:
- lib/report_portal/cucumber/formatter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #embed(*args) ⇒ Object
-
#initialize(config) ⇒ Formatter
constructor
private
A new instance of Formatter.
- #puts(message) ⇒ Object
Constructor Details
#initialize(config) ⇒ Formatter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Formatter.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/report_portal/cucumber/formatter.rb', line 7 def initialize(config) ENV['REPORT_PORTAL_USED'] = 'true' @io = config.out_stream %i[test_case_started test_case_finished test_step_started test_step_finished test_run_finished].each do |event_name| config.on_event event_name do |event| (event_name, event) end end config.on_event(:test_run_finished) { } end |
Instance Method Details
#embed(*args) ⇒ Object
28 29 30 |
# File 'lib/report_portal/cucumber/formatter.rb', line 28 def (*args) (:embed, *args) end |
#puts(message) ⇒ Object
22 23 24 25 26 |
# File 'lib/report_portal/cucumber/formatter.rb', line 22 def puts() (:puts, ) @io.puts() @io.flush end |