Module: DistribCore::Leader::QueueBuilder

Defined in:
lib/distrib_core/leader/queue_builder.rb

Overview

Helper that builds a list of the test files to execute sorted by average execution time descending. The order strategy is backed by en.wikipedia.org/wiki/Queueing_theory

Class Method Summary collapse

Class Method Details

.testsArray<String>

Returns list of test files in the order they should be enqueued.

Returns:

  • (Array<String>)

    list of test files in the order they should be enqueued



8
9
10
# File 'lib/distrib_core/leader/queue_builder.rb', line 8

def self.tests
  ::DistribCore.configuration.tests_provider.call
end