Sha256: 115021daf56df641ee6760c4d18b6ffa75883d33613de33d0eff40e982ae0856
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
begin require 'minitest' require_relative '../runner/minitest5' rescue LoadError => e require 'minitest/unit' require_relative '../runner/minitest4' end module TestQueue class Runner class MiniTest < Runner def summarize_worker(worker) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test-queue-0.7.0 | lib/test_queue/runner/minitest.rb |
test-queue-0.6.0 | lib/test_queue/runner/minitest.rb |