Sha256: 203e1d018e933a402bc13443698db5a81b79de2578cf3c7f1333d0c78def0e1f

Contents?: true

Size: 898 Bytes

Versions: 69

Compression:

Stored size: 898 Bytes

Contents

module KnapsackPro
  module Runners
    module Queue
      class BaseRunner
        def self.run(args)
          raise NotImplementedError
        end

        def self.run_tests(runner, can_initialize_queue, args, exitstatus)
          raise NotImplementedError
        end

        def initialize(adapter_class)
          @allocator_builder = KnapsackPro::QueueAllocatorBuilder.new(adapter_class)
          @allocator = allocator_builder.allocator
        end

        def test_file_paths(args)
          can_initialize_queue = args.fetch(:can_initialize_queue)
          executed_test_files = args.fetch(:executed_test_files)
          allocator.test_file_paths(can_initialize_queue, executed_test_files)
        end

        def test_dir
          allocator_builder.test_dir
        end

        private

        attr_reader :allocator_builder,
          :allocator
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
knapsack_pro-2.16.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.15.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.14.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.13.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.12.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.11.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.10.1 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.10.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.9.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.8.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.7.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.6.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.5.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.4.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.3.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.2.1 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.2.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.1.1 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.1.0 lib/knapsack_pro/runners/queue/base_runner.rb
knapsack_pro-2.0.0 lib/knapsack_pro/runners/queue/base_runner.rb