Sha256: 0fdaa26125d12484c61765d7939be16b45c8d5b7c8c7a369081a74aef616ccd0
Contents?: true
Size: 746 Bytes
Versions: 11
Compression:
Stored size: 746 Bytes
Contents
module Knapsack class Allocator def initialize(args={}) @report_distributor = Knapsack::Distributors::ReportDistributor.new(args) @leftover_distributor = Knapsack::Distributors::LeftoverDistributor.new(args) end def report_node_tests @report_node_tests ||= @report_distributor.tests_for_current_node end def leftover_node_tests @leftover_node_tests ||= @leftover_distributor.tests_for_current_node end def node_tests @node_tests ||= report_node_tests + leftover_node_tests end def stringify_node_tests node_tests.join(' ') end def test_dir Knapsack::Config::Env.test_dir || @report_distributor.test_file_pattern.gsub(/^(.*?)\//).first end end end
Version data entries
11 entries across 11 versions & 1 rubygems