W3cubDocs

/Ruby / Minitest

class Minitest::AbstractReporter

Parent:
Object
Included modules:

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

Public Instance Methods

passed?() Show source

Did this run pass?

# File lib/minitest.rb, line 456
def passed?
  true
end
prerecord(klass, name) Show 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 437
def prerecord klass, name
end
record(result) Show 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 444
def record result
end
report() Show source

Outputs the summary of the run.

# File lib/minitest.rb, line 450
def report
end
start() Show source

Starts reporting on the run.

# File lib/minitest.rb, line 430
def start
end

© Ryan Davis, seattle.rb
Licensed under the MIT License.