module Hotch::Minitest
Public Class Methods
aggregate(**options)
click to toggle source
Calls superclass method
# File lib/hotch/minitest.rb, line 20 def self.aggregate(**options) Module.new do define_method(:run_one_method) do |*args| options[:aggregate] = true Hotch(**options) do super(*args) end end end end
run(**options)
click to toggle source
Usage in test/test_helper.rb:
require 'hotch/minitest' Hotch::Minitest.run Hotch::Minitest.run(filter: /MyClass/) Hotch::Minitest.run(options: <stackprof options>) Hotch::Minitest.run(options: { limit: 200 })
# File lib/hotch/minitest.rb, line 16 def self.run(**options) ::Minitest.singleton_class.prepend Hotch::Minitest.aggregate(**options) end