Class: Cucumber::Formatter::EventBusReport
- Defined in:
- lib/cucumber/formatter/event_bus_report.rb
Overview
Adapter between Cucumber::Core::Test::Runner’s Report API and Cucumber’s event bus
Instance Method Summary collapse
- #after_test_case(test_case, result) ⇒ Object
- #after_test_step(test_step, result) ⇒ Object
- #before_test_case(test_case) ⇒ Object
- #before_test_step(test_step) ⇒ Object
- #done ⇒ Object
-
#initialize(config) ⇒ EventBusReport
constructor
A new instance of EventBusReport.
Constructor Details
#initialize(config) ⇒ EventBusReport
Returns a new instance of EventBusReport.
10 11 12 |
# File 'lib/cucumber/formatter/event_bus_report.rb', line 10 def initialize(config) @config = config end |
Instance Method Details
#after_test_case(test_case, result) ⇒ Object
27 28 29 |
# File 'lib/cucumber/formatter/event_bus_report.rb', line 27 def after_test_case(test_case, result) @config.notify Events::AfterTestCase.new(test_case, result) end |
#after_test_step(test_step, result) ⇒ Object
23 24 25 |
# File 'lib/cucumber/formatter/event_bus_report.rb', line 23 def after_test_step(test_step, result) @config.notify Events::AfterTestStep.new(@test_case, test_step, result) end |
#before_test_case(test_case) ⇒ Object
14 15 16 17 |
# File 'lib/cucumber/formatter/event_bus_report.rb', line 14 def before_test_case(test_case) @config.notify Events::BeforeTestCase.new(test_case) @test_case = test_case end |
#before_test_step(test_step) ⇒ Object
19 20 21 |
# File 'lib/cucumber/formatter/event_bus_report.rb', line 19 def before_test_step(test_step) @config.notify Events::BeforeTestStep.new(@test_case, test_step) end |
#done ⇒ Object
31 32 33 |
# File 'lib/cucumber/formatter/event_bus_report.rb', line 31 def done @config.notify Events::FinishedTesting.new end |