class Cucumber::Filters::BroadcastTestRunStartedEvent

Added at the end of the filter chain to broadcast a list of all of the test cases that have made it through the filters.

Public Class Methods

new(config, receiver = nil) click to toggle source
Calls superclass method
# File lib/cucumber/filters/broadcast_test_run_started_event.rb, line 7
def initialize(config, receiver = nil)
  super
  @test_cases = []
end

Public Instance Methods

done() click to toggle source
Calls superclass method
# File lib/cucumber/filters/broadcast_test_run_started_event.rb, line 17
def done
  config.notify :test_run_started, @test_cases
  @test_cases.map do |test_case|
    test_case.describe_to(@receiver)
  end
  super
  self
end
test_case(test_case) click to toggle source
# File lib/cucumber/filters/broadcast_test_run_started_event.rb, line 12
def test_case(test_case)
  @test_cases << test_case
  self
end