Sha256: cab455778e5e70f64eb8b5951ea94adcd8ebc58b81843a73f902c4d2e0249731

Contents?: true

Size: 633 Bytes

Versions: 7

Compression:

Stored size: 633 Bytes

Contents

begin
  require 'minitest'
  require 'test_queue/runner/minitest5'
rescue LoadError => e
  require 'minitest/unit'
  require 'test_queue/runner/minitest4'
end

module TestQueue
  class Runner
    class MiniTest < Runner
      def summarize_worker(worker)
        worker.stats.each do |s, val|
          stats[s.to_s] = val
        end

        worker.summary = worker.lines.grep(/, \d+ errors?, /).first
        failures  = worker.lines.select{ |line|
          line if (line =~ /^Finished/) ... (line =~ /, \d+ errors?, /)
        }[1..-2]
        worker.failure_output = failures.join("\n") if failures
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
test-queue-split-0.3.2 lib/test_queue/runner/minitest.rb
test-queue-split-0.3.1 lib/test_queue/runner/minitest.rb
test-queue-split-0.3.0 lib/test_queue/runner/minitest.rb
test-queue-0.2.13 lib/test_queue/runner/minitest.rb
test-queue-0.2.12 lib/test_queue/runner/minitest.rb
test-queue-0.2.11 lib/test_queue/runner/minitest.rb
test-queue-0.2.10 lib/test_queue/runner/minitest.rb