Sha256: 5d3e1659aeb4c93f7ba719e59fd09aeef2801dbe5ab0a06f1cd186fec208246b
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true module Cucumber module Filters # 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. class BroadcastTestRunStartedEvent < Core::Filter.new(:config) def initialize(config, receiver=nil) super @test_cases = [] end def test_case(test_case) @test_cases << test_case self end def done config.notify :test_run_started, @test_cases @test_cases.map do |test_case| test_case.describe_to(@receiver) end super self end end end end
Version data entries
4 entries across 4 versions & 1 rubygems