Module: Minitest

Defined in:
lib/minitest/reporters.rb,
lib/minitest/reporters/ansi.rb,
lib/minitest/relative_position.rb,
lib/minitest/reporters/version.rb,
lib/minitest/reporters/spec_reporter.rb,
lib/minitest/reporters/base_reporter.rb,
lib/minitest/minitest_reporter_plugin.rb,
lib/minitest/reporters/junit_reporter.rb,
lib/minitest/reporters/default_reporter.rb,
lib/minitest/extensible_backtrace_filter.rb,
lib/minitest/reporters/progress_reporter.rb,
lib/minitest/reporters/ruby_mate_reporter.rb

Defined Under Namespace

Modules: RelativePosition, Reporters Classes: ExtensibleBacktraceFilter

Class Method Summary collapse

Class Method Details

.plugin_minitest_reporter_init(options)


3
4
5
6
7
8
9
10
11
# File 'lib/minitest/minitest_reporter_plugin.rb', line 3

def plugin_minitest_reporter_init(options)
  if defined?(Minitest::Reporters) && Minitest::Reporters.reporters
    reporter.reporters = Minitest::Reporters.reporters + guard_reporter
    reporter.reporters.each do |reporter|
      reporter.io = options[:io]
      reporter.add_defaults(options.merge(:total_count => total_count(options))) if reporter.respond_to? :add_defaults
    end
  end
end