module Minitest
Public Class Methods
plugin_rerun_options_init(options)
click to toggle source
# File lib/minitest/rerun_options_plugin.rb, line 8 def self.plugin_rerun_options_init(options) reporter.reporters << RerunOptionsReporter.new options[:filter] = "/#{options[:names].join('|')}/" if options[:names] && !options[:names].empty? end
plugin_rerun_options_options(opts, options)
click to toggle source
# File lib/minitest/rerun_options_plugin.rb, line 2 def self.plugin_rerun_options_options(opts, options) opts.on '--names x,y,z', Array, "Run specified test names" do |names| options[:names] = names end end