module Minitest::Debugger
This is a stupid simple example of how easy it is to make a minitest plugin that does something useful. In this case it wraps assert so that failed assertions will drop into the ruby debugger.
Constants
- VERSION
Public Instance Methods
assert(test, msg = nil)
click to toggle source
Calls superclass method
# File lib/minitest/debugger.rb, line 30 def assert test, msg = nil begin super rescue Minitest::Assertion => e warn "Assertion Failed. Dropping into debugger now:" DEBUGGER__.start raise e end end