Module: Minitest

Defined in:
lib/minitest/path_expander.rb,
lib/minitest/rake_reporter.rb,
lib/minitest/sprint_plugin.rb,
lib/minitest/sprint_reporter.rb,
lib/minitest/binstub_reporter.rb

Overview

:nodoc:

Defined Under Namespace

Classes: BinstubReporter, PathExpander, RakeReporter, Sprint, SprintReporter

Class Method Summary collapse

Class Method Details

.plugin_sprint_init(options) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/minitest/sprint_plugin.rb', line 15

def self.plugin_sprint_init options
  case options[:sprint]
  when :rake then
    require "minitest/rake_reporter"
    self.reporter << Minitest::RakeReporter.new(options[:rake_task])
  when :binstub then
    require "minitest/binstub_reporter"
    self.reporter << Minitest::BinstubReporter.new
  end
end

.plugin_sprint_options(opts, options) ⇒ Object

:nodoc:



4
5
6
7
8
9
10
11
12
13
# File 'lib/minitest/sprint_plugin.rb', line 4

def self.plugin_sprint_options opts, options # :nodoc:
  opts.on "--rake [TASK]", "Report how to re-run failures with rake." do |task|
    options[:sprint] = :rake
    options[:rake_task] = task
  end

  opts.on "--binstub", "Report how to re-run failures with minitest." do
    options[:sprint] = :binstub
  end
end