Sha256: 042de33db2eeb5ff17f7fc16a7cb9845560803b3417c6d4cbee485cedbb0d7a9

Contents?: true

Size: 1.1 KB

Versions: 7221

Compression:

Stored size: 1.1 KB

Contents

require 'drb/drb'
RSpec::Support.require_rspec_core "formatters/base_bisect_formatter"

module RSpec
  module Core
    module Formatters
      # Used by `--bisect`. When it shells out and runs a portion of the suite, it uses
      # this formatter as a means to have the status reported back to it, via DRb.
      #
      # Note that since DRb calls carry considerable overhead compared to normal
      # method calls, we try to minimize the number of DRb calls for perf reasons,
      # opting to communicate only at the start and the end of the run, rather than
      # after each example.
      # @private
      class BisectDRbFormatter < BaseBisectFormatter
        def initialize(_output)
          drb_uri = "druby://localhost:#{RSpec.configuration.drb_port}"
          @bisect_server = DRbObject.new_with_uri(drb_uri)
          RSpec.configuration.files_or_directories_to_run = @bisect_server.files_or_directories_to_run
          super(Set.new(@bisect_server.expected_failures))
        end

        def notify_results(results)
          @bisect_server.latest_run_results = results
        end
      end
    end
  end
end

Version data entries

7,221 entries across 7,156 versions & 88 rubygems

Version Path
ruby-scheduler-0.1.2 vendor/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
ruby-scheduler-0.1.0 vendor/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
cloudsmith-api-0.49.21 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
cloudsmith-api-0.49.15 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
mdap-0.1.0 vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
husc-0.2.1 vendor/bundle/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
husc-0.2.0 vendor/bundle/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
husc-0.1.1 vendor/bundle/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
husc-0.1.0 vendor/bundle/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-3.9.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
rspec-core-3.9.1 lib/rspec/core/formatters/bisect_drb_formatter.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.8.1/lib/rspec/core/formatters/bisect_drb_formatter.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/formatters/bisect_drb_formatter.rb
tdiary-5.1.0 vendor/bundle/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb
spec_fill-0.1.2 vendor/bundle/ruby/2.6.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb
genkaio-0.0.2 vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb
genkaio-0.0.2 vendor/bundle/ruby/2.7.0/gems/rspec-core-3.9.0/lib/rspec/core/formatters/bisect_drb_formatter.rb