Class: Minitest::CompositeReporter
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
AbstractReporter
|
|
Instance Chain:
self,
AbstractReporter
|
|
Inherits: |
Minitest::AbstractReporter
|
Defined in: | lib/minitest.rb |
Overview
Dispatch to multiple reporters as one.
Class Method Summary
- .new(*reporters) ⇒ CompositeReporter constructor Internal use only
AbstractReporter
- Inherited
Instance Attribute Summary
-
#reporters
rw
The list of reporters to dispatch to.
- #passed? ⇒ Boolean readonly Internal use only
AbstractReporter
- Inherited
#passed? | Did this run pass? |
Instance Method Summary
-
#<<(reporter)
Add another reporter to the mix.
- #io Internal use only
- #prerecord(klass, name) Internal use only
- #record(result) Internal use only
- #report Internal use only
- #start Internal use only
AbstractReporter
- Inherited
#prerecord | About to start running a test. |
#record | Output and record the result of the test. |
#report | Outputs the summary of the run. |
#start | Starts reporting on the run. |
#synchronize |
Constructor Details
.new(*reporters) ⇒ CompositeReporter
This method is for internal use only.
Instance Attribute Details
#passed? ⇒ Boolean
(readonly)
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest.rb', line 991
def passed? # :nodoc: self.reporters.all?(&:passed?) end
#reporters (rw)
The list of reporters to dispatch to.
# File 'lib/minitest.rb', line 973
attr_accessor :reporters
Instance Method Details
#<<(reporter)
Add another reporter to the mix.
#io
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest.rb', line 980
def io # :nodoc: reporters.first.io end
#prerecord(klass, name)
This method is for internal use only.
[ GitHub ]
#record(result)
This method is for internal use only.
[ GitHub ]
#report
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest.rb', line 1012
def report # :nodoc: self.reporters.each(&:report) end
#start
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest.rb', line 995
def start # :nodoc: self.reporters.each(&:start) end