lib/minitest/queue.rb in ci-queue-0.16.0 vs lib/minitest/queue.rb in ci-queue-0.17.0

- old
+ new

@@ -1,16 +1,21 @@ +# frozen_string_literal: true require 'minitest' -gem 'minitest-reporters', '~> 1.1' require 'minitest/reporters' require 'minitest/queue/failure_formatter' require 'minitest/queue/error_report' require 'minitest/queue/local_requeue_reporter' require 'minitest/queue/build_status_recorder' require 'minitest/queue/build_status_reporter' require 'minitest/queue/order_reporter' require 'minitest/queue/junit_reporter' +require 'minitest/queue/test_data_reporter' +require 'minitest/queue/grind_recorder' +require 'minitest/queue/grind_reporter' +require 'minitest/queue/test_time_recorder' +require 'minitest/queue/test_time_reporter' module Minitest class Requeue < Skip attr_reader :failure @@ -43,11 +48,11 @@ super() @failure = failure end def result_label - "Skipped" + "Flaked" end def backtrace failure.backtrace end @@ -95,10 +100,11 @@ end end module Queue class SingleExample + def initialize(runnable, method_name) @runnable = runnable @method_name = method_name end @@ -142,11 +148,11 @@ def __run(*args) if queue run_from_queue(*args) - if queue.config.circuit_breaker.open? - STDERR.puts "This worker is exiting early because it encountered too many consecutive test failures, probably because of some corrupted state." + if queue.config.circuit_breakers.any?(&:open?) + STDERR.puts queue.config.circuit_breakers.map(&:message).join(' ').strip end else super end end