module Minitest

Public Class Methods

plugin_hyper_init(options) click to toggle source

Mandatory Minitest initializer hook Detected by Minitest.load_plugins, invoked during Minitest.init_plugins

# File lib/minitest/hyper_plugin.rb, line 9
def self.plugin_hyper_init(options)
  if Hyper.enabled?
    reporter.reporters << Hyper::Reporter.new(options[:io], options)
  end
end
plugin_hyper_options(opts, options) click to toggle source

Optional hook for command line params handling Invoked by Minitest.process_args

# File lib/minitest/hyper_plugin.rb, line 17
def self.plugin_hyper_options(opts, options)
  description = "Generate an HTML test report with Minitest::Hyper"
  opts.on "-H", "--html", description do
    Hyper.enable!
  end
end