123456789_123456789_123456789_123456789_123456789_

Class: Minitest::CompositeReporter

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, AbstractReporter, Mutex_m
Inherits: Minitest::AbstractReporter
Defined in: lib/minitest.rb

Overview

Dispatch to multiple reporters as one.

Instance Attribute Summary

AbstractReporter - Inherited

#passed?

Did this run pass?

Instance Method Summary

AbstractReporter - Inherited

#record

Record a result and output the Runnable#result_code.

#report

Outputs the summary of the run.

#start

Starts reporting on the run.

Instance Attribute Details

#reporters (rw)

The list of reporters to dispatch to.

[ GitHub ]

  
# File 'lib/minitest.rb', line 597

attr_accessor :reporters

Instance Method Details

#<<(reporter)

Add another reporter to the mix.

[ GitHub ]

  
# File 'lib/minitest.rb', line 607

def << reporter
  self.reporters << reporter
end