You can configure traces of the Minitest stack, for example:
class MyBacktraceFilter def filter bt bt.dup.reject{|x| not x.to_s =~ /#{::Rails.root.to_s}/} end end MiniTest.backtrace_filter = MyBacktraceFilter.new
The filter method takes the full stack trace in the bt parameter as an array and returns the filtered array. If you want the whole stack to show just pass the input:
class MyBacktraceFilter def filter bt bt end end MiniTest.backtrace_filter = MyBacktraceFilter.new
bbozo
source share