Sha256: c76e4587fa0637def4d33447fac8f64f629b2ef0b0f954a1df37a1154dbe59fc

Contents?: true

Size: 664 Bytes

Versions: 41

Compression:

Stored size: 664 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

41 entries across 41 versions & 4 rubygems

Version Path
cucumber-9.2.1 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.2.0 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.1.2 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.1.1 lib/cucumber/filters/broadcast_test_run_started_event.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.1.0/lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.1.0 lib/cucumber/filters/broadcast_test_run_started_event.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.0.2/lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.0.2 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.0.1 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-9.0.0 lib/cucumber/filters/broadcast_test_run_started_event.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/filters/broadcast_test_run_started_event.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/filters/broadcast_test_run_started_event.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/filters/broadcast_test_run_started_event.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-8.0.0 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-8.0.0.rc.1 lib/cucumber/filters/broadcast_test_run_started_event.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-7.1.0 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-7.0.0 lib/cucumber/filters/broadcast_test_run_started_event.rb
cucumber-6.1.0 lib/cucumber/filters/broadcast_test_run_started_event.rb