class Cucumber::Formatter::EventBusReport
Adapter between Cucumber::Core::Test::Runner's Report API and Cucumber's event bus
Attributes
config[R]
Public Class Methods
new(config)
click to toggle source
# File lib/cucumber/formatter/event_bus_report.rb, line 10 def initialize(config) @config = config end
Public Instance Methods
after_test_case(test_case, result)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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()
click to toggle source
# File lib/cucumber/formatter/event_bus_report.rb, line 31 def done @config.notify Events::FinishedTesting.new end