module Minitest
Public Class Methods
plugin_flyordie_init(options)
click to toggle source
# File lib/minitest/flyordie.rb, line 14 def self.plugin_flyordie_init(options) self.reporter << FlyOrDieReporter.new(options) if options[:maxslow] end
plugin_flyordie_options(opts, options)
click to toggle source
# File lib/minitest/flyordie.rb, line 5 def self.plugin_flyordie_options(opts, options) opts.on "--maxslow COUNT", Integer, "Maximum number of allowable slow tests before build failed." do |c| options[:maxslow] = c end opts.on "--slowtime DURATION", Integer, "Duration of time before a tests is considered slow, in milliseconds" do |c| options[:slowtime] = c end end