class CI::Queue::Grind

Public Class Methods

from_uri(uri, config) click to toggle source
# File lib/ci/queue/grind.rb, line 8
def from_uri(uri, config)
  new(uri.path, config)
end
new(path, config) click to toggle source
Calls superclass method
# File lib/ci/queue/grind.rb, line 13
def initialize(path, config)
  io = path == '-' ? STDIN : ::File.open(path)

  tests_to_run = io.each_line.map(&:strip).reject(&:empty?)
  test_grinds = (tests_to_run * config.grind_count).sort

  super(test_grinds, config)
end