class method self.plugin_rails_replace_reporters

Ruby on Rails 5.1.7

Since v5.1.7 Last seen in v5.2.8.1

Available in: v5.1.7 v5.2.8.1

Signature

self.plugin_rails_replace_reporters(minitest_reporter, options)

No documentation comment.

Parameters

minitest_reporter req
options req
Source
# File railties/lib/minitest/rails_plugin.rb, line 44
  def self.plugin_rails_replace_reporters(minitest_reporter, options)
    return unless minitest_reporter.kind_of?(Minitest::CompositeReporter)

    # Replace progress reporter for colors.
    if minitest_reporter.reporters.reject! { |reporter| reporter.kind_of?(SummaryReporter) } != nil
      minitest_reporter << SuppressedSummaryReporter.new(options[:io], options)
    end
    if minitest_reporter.reporters.reject! { |reporter| reporter.kind_of?(ProgressReporter) } != nil
      minitest_reporter << ::Rails::TestUnitReporter.new(options[:io], options)
    end
  end

Defined in railties/lib/minitest/rails_plugin.rb line 44 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Minitest

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close