Class: Minitest::AbstractReporter
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Subclasses: | |
| Inherits: | Object | 
| Defined in: | lib/minitest.rb | 
Overview
Defines the API for Reporters. Subclass this and override whatever you want. Go nuts.
Class Method Summary
- .new ⇒ AbstractReporter constructor Internal use only
Instance Attribute Summary
- 
    
      #passed?  ⇒ Boolean 
    
    readonly
    Did this run pass? 
Instance Method Summary
- 
    
      #prerecord(klass, name)  
    
    About to start running a test. 
- 
    
      #record(result)  
    
    Output and record the result of the test. 
- 
    
      #report  
    
    Outputs the summary of the run. 
- 
    
      #start  
    
    Starts reporting on the run. 
- #synchronize(&block) Internal use only
Constructor Details
    .new  ⇒ AbstractReporter 
  
  
    This method is for internal use only.
  
# File 'lib/minitest.rb', line 689
def initialize # :nodoc: @mutex = Mutex.new end
Instance Attribute Details
    #passed?  ⇒ Boolean  (readonly)
  
Did this run pass?
# File 'lib/minitest.rb', line 724
def passed? true end
Instance Method Details
#prerecord(klass, name)
About to start running a test. This allows a reporter to show that it is starting or that we are in the middle of a test run.
# File 'lib/minitest.rb', line 703
def prerecord klass, name end
#record(result)
Output and record the result of the test. Call result#result_code to get the result character string. Stores the result of the run if the run did not pass.
# File 'lib/minitest.rb', line 712
def record result end
#report
Outputs the summary of the run.
# File 'lib/minitest.rb', line 718
def report end
#start
Starts reporting on the run.
# File 'lib/minitest.rb', line 696
def start end
#synchronize(&block)
    This method is for internal use only.
  
  [ GitHub ]
# File 'lib/minitest.rb', line 728
def synchronize &block # :nodoc: @mutex.synchronize(&block) end