lib/test_queue/runner/minitest.rb in test-queue-0.2.1 vs lib/test_queue/runner/minitest.rb in test-queue-0.2.2

- old
+ new

@@ -57,12 +57,12 @@ def summarize_worker(worker) worker.stats.each do |s, val| stats[s.to_s] = val end - num_tests = worker.lines.grep(/ errors?, /).first + num_tests = worker.lines.grep(/, \d+ errors?, /).first failures = worker.lines.select{ |line| - line if (line =~ /^Finished/) ... (line =~ / errors?, /) + line if (line =~ /^Finished/) ... (line =~ /, \d+ errors?, /) }[1..-2] failures = failures.join("\n") if failures [ num_tests, failures ] end