module Minitest

Public Class Methods

plugin_megaphone_init(options) click to toggle source
# File lib/minitest/megaphone_plugin.rb, line 13
def self.plugin_megaphone_init(options)
  if MegaphoneReporter.megaphone?
    self.reporter.reporters << MegaphoneReporter.new(options)
  end
end
plugin_megaphone_options(opts, _options) click to toggle source
# File lib/minitest/megaphone_plugin.rb, line 4
def self.plugin_megaphone_options(opts, _options)
  opts.on "--meg", "Print out all errors from the test suite after it has completed running" do
    MegaphoneReporter.megaphone!
  end
  opts.on "--megaphone", "Print out all errors from the test suite after it has completed running" do
    MegaphoneReporter.megaphone!
  end
end