Module: Minitest

Defined in:
lib/minitest/heat_plugin.rb,
lib/minitest/heat.rb,
lib/minitest/heat/hit.rb,
lib/minitest/heat/map.rb,
lib/minitest/heat/issue.rb,
lib/minitest/heat/timer.rb,
lib/minitest/heat/output.rb,
lib/minitest/heat/source.rb,
lib/minitest/heat/results.rb,
lib/minitest/heat/version.rb,
lib/minitest/heat/location.rb,
lib/minitest/heat_reporter.rb,
lib/minitest/heat/backtrace.rb,
lib/minitest/heat/locations.rb,
lib/minitest/heat/output/map.rb,
lib/minitest/heat/output/issue.rb,
lib/minitest/heat/output/token.rb,
lib/minitest/heat/configuration.rb,
lib/minitest/heat/output/marker.rb,
lib/minitest/heat/output/results.rb,
lib/minitest/heat/output/backtrace.rb,
lib/minitest/heat/output/source_code.rb,
lib/minitest/heat/backtrace/line_count.rb,
lib/minitest/heat/backtrace/line_parser.rb

Overview

rubocop:disable Style/Documentation

Defined Under Namespace

Modules: Heat Classes: HeatReporter

Class Method Summary collapse

Class Method Details

.plugin_heat_init(options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/minitest/heat_plugin.rb', line 6

def self.plugin_heat_init(options)
  io = options.fetch(:io, $stdout)

  reporter.reporters.reject! do |reporter|
    # Minitest Heat acts as a unified Progress *and* Summary reporter. Using other reporters of
    # those types in conjunction with it creates some overly-verbose output
    reporter.is_a?(ProgressReporter) || reporter.is_a?(SummaryReporter)
  end

  # Hook up Reviewer
  self.reporter.reporters << HeatReporter.new(io, options)
end