Abstract base class for test distribution strategies. Subclasses implement different ways of assigning tests to workers.
Methods
Instance Public methods
add_test(test) Link
Add a test to be distributed to workers. @param test [Array] Test tuple: [class, method, reporter]
close() Link
Close the distributor. No more work will be accepted.
interrupt() Link
Clear all pending work (called on interrupt).
pending?() Link
Check if there is pending work. @return [Boolean] true if work is pending
take(worker_id:) Link
Retrieve the next test for a specific worker. @param worker_id [Integer] The worker requesting work @return [Array, nil] Test tuple or nil if no work available