Sha256: 4734c61b80e7d29a169998403eb5d5055f4a8430a8f3002b1c2c272bd5f8e83b
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true require 'minitest' raise 'requires Minitest version 5' unless Minitest::VERSION.to_i == 5 require_relative '../runner/minitest5' 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
4 entries across 4 versions & 1 rubygems