class Minitest::CompositeReporter
def << reporter
def << reporter self.reporters << reporter end
def initialize *reporters # :nodoc:
def initialize *reporters # :nodoc: super() self.reporters = reporters end
def io # :nodoc:
def io # :nodoc: reporters.first.io end
def passed? # :nodoc:
def passed? # :nodoc: self.reporters.all?(&:passed?) end
def prerecord klass, name # :nodoc:
def prerecord klass, name # :nodoc: self.reporters.each do |reporter| # TODO: remove conditional for minitest 6 reporter.prerecord klass, name if reporter.respond_to? :prerecord end end
def record result # :nodoc:
def record result # :nodoc: self.reporters.each do |reporter| reporter.record result end end
def report # :nodoc:
def report # :nodoc: self.reporters.each(&:report) end
def start # :nodoc:
def start # :nodoc: self.reporters.each(&:start) end