Adapter between Cucumber::Core::Test::Runner's Report API and Cucumber's event bus
# File lib/cucumber/formatter/event_bus_report.rb, line 10 def initialize(config) @config = config end
# 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
# 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
# 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
# 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
# File lib/cucumber/formatter/event_bus_report.rb, line 31 def done @config.notify Events::FinishedTesting.new end