Class: Minitest::AbstractReporter (Ruby 2.7.5)
Description: Class : Minitest::AbstractReporter - Ruby 2.7.5

### Home Classes Methods

### In Files

- minitest-5.13.0/lib/minitest.rb

### Parent

Object

### Methods

- #passed?
- #prerecord
- #record
- #report
- #start

### Included Modules

- Mutex_m

### Files

- History.rdoc
- README.rdoc

### Class/Module Index

Quicksearch

- Kernel
- Minitest::AbstractReporter
- Minitest::Assertion
- Minitest::Assertions
- Minitest::BacktraceFilter
- Minitest::BenchSpec
- Minitest::Benchmark
- Minitest::CompositeReporter
- Minitest::Expectations
- Minitest::Guard
- Minitest::Mock
- Minitest::Parallel
- Minitest::Parallel::Executor
- Minitest::PrideIO
- Minitest::PrideLOL
- Minitest::ProgressReporter
- Minitest::Reportable
- Minitest::Result
- Minitest::Skip
- Minitest::Spec
- Minitest::Spec::DSL
- Minitest::Spec::DSL::InstanceMethods
- Minitest::StatisticsReporter
- Minitest::SummaryReporter
- Minitest::Test
- Minitest::Test::LifecycleHooks
- Minitest::UnexpectedError
- Object
- SubThingySpec
- ThingySpec

No matching classes.

# 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 minitest-5.13.0/lib/minitest.rb, line 586
    def passed?
      true
    end

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 minitest-5.13.0/lib/minitest.rb, line 565
    def prerecord klass, name
    end

record(result) click to toggle source

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 minitest-5.13.0/lib/minitest.rb, line 574
    def record result
    end

report() click to toggle source

Outputs the summary of the run.

                   # File minitest-5.13.0/lib/minitest.rb, line 580
    def report
    end

start() click to toggle source

Starts reporting on the run.

                   # File minitest-5.13.0/lib/minitest.rb, line 558
    def start
    end