class ActiveSupport::Testing::ParallelizeExecutor

def should_parallelize?

def should_parallelize?
  (ENV["PARALLEL_WORKERS"] || tests_count > threshold) && many_workers?
end