Module: Minitest
- Defined in:
- lib/minitest/rake_reporter.rb,
lib/minitest/sprint_plugin.rb,
lib/minitest/sprint_reporter.rb,
lib/minitest/binstub_reporter.rb
Defined Under Namespace
Classes: BinstubReporter, RakeReporter, Sprint, SprintReporter
Class Method Summary collapse
Class Method Details
.plugin_sprint_init(options) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/minitest/sprint_plugin.rb', line 14 def self.plugin_sprint_init case [:sprint] when :rake then require "minitest/rake_reporter" self.reporter << Minitest::RakeReporter.new 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 |
# File 'lib/minitest/sprint_plugin.rb', line 4 def self. opts, # :nodoc: opts.on "--rake", "Report how to re-run failures with rake." do [:sprint] = :rake end opts.on "--binstub", "Report how to re-run failures with minitest." do [:sprint] = :binstub end end |