module Cucumber::Core

def execute(gherkin_documents, filters = [], event_bus = EventBus.new)

def execute(gherkin_documents, filters = [], event_bus = EventBus.new)
  yield event_bus if block_given?
  receiver = Test::Runner.new(event_bus)
  compile gherkin_documents, receiver, filters
  self
end