module Minitest

def self.plugin_rails_init(options)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.plugin_rails_init: (Hash options) -> untyped

This signature was generated using 3 samples from 1 application.

minitest-reporters, maxitest, and others.
Owes great inspiration to test runner trailblazers like RSpec,
def self.plugin_rails_init(options)
  unless options[:full_backtrace] || ENV["BACKTRACE"]
    # Plugin can run without Rails loaded, check before filtering.
    if ::Rails.respond_to?(:backtrace_cleaner)
      Minitest.backtrace_filter = BacktraceFilterWithFallback.new(::Rails.backtrace_cleaner, Minitest.backtrace_filter)
    end
  end
  # Suppress summary reports when outputting inline rerun snippets.
  if reporter.reporters.reject! { |reporter| reporter.kind_of?(SummaryReporter) }
    reporter << SuppressedSummaryReporter.new(options[:io], options)
  end
  # Replace progress reporter for colors.
  if reporter.reporters.reject! { |reporter| reporter.kind_of?(ProgressReporter) }
    reporter << ::Rails::TestUnitReporter.new(options[:io], options)
  end
end