Class: Minitest::TestProf::BaseReporter

Inherits:
AbstractReporter
  • Object
show all
Includes:
TestProf::Logging
Defined in:
lib/minitest/base_reporter.rb

Overview

:nodoc:

Direct Known Subclasses

EventProfReporter, FactoryDoctorReporter

Constant Summary

Constants included from TestProf::Logging

TestProf::Logging::COLORS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TestProf::Logging

#build_log_msg, #colorize, #log

Constructor Details

#initialize(io = $stdout, _options = {}) ⇒ BaseReporter

Returns a new instance of BaseReporter.



13
14
15
16
# File 'lib/minitest/base_reporter.rb', line 13

def initialize(io = $stdout, _options = {})
  @io = io
  inject_to_minitest_reporters if defined? Minitest::Reporters
end

Instance Attribute Details

#ioObject

Returns the value of attribute io.



11
12
13
# File 'lib/minitest/base_reporter.rb', line 11

def io
  @io
end

Instance Method Details

#after_test(test) ⇒ Object



26
# File 'lib/minitest/base_reporter.rb', line 26

def after_test(test); end

#before_test(test) ⇒ Object



22
# File 'lib/minitest/base_reporter.rb', line 22

def before_test(test); end

#prerecord(group, example) ⇒ Object



20
# File 'lib/minitest/base_reporter.rb', line 20

def prerecord(group, example); end

#recordObject



24
# File 'lib/minitest/base_reporter.rb', line 24

def record(*); end

#reportObject



28
# File 'lib/minitest/base_reporter.rb', line 28

def report; end

#startObject



18
# File 'lib/minitest/base_reporter.rb', line 18

def start; end