class Minitest::AbstractReporter

Defines the API for Reporters. Subclass this and override whatever you want. Go nuts.

Public Instance Methods

passed?() click to toggle source

Did this run pass?

# File lib/minitest.rb, line 457
def passed?
prerecord(klass, name) click to toggle source

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 438
def prerecord klass, name
record(result) click to toggle source

Record a result and output the Minitest::Runnable#result_code. Stores the result of the run if the run did not pass.

# File lib/minitest.rb, line 445
def record result
report() click to toggle source

Outputs the summary of the run.

# File lib/minitest.rb, line 451
def report
start() click to toggle source

Starts reporting on the run.

# File lib/minitest.rb, line 431
def start