Is there a config variable to set, or some other way to get Rails ActiveSupport::TestCase
to show more than one trace line? It is really hard to de
You can customize Minitest stack traces like this 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 accepts the full stack trace in the bt
parameter as an array and returns the filtered array. If you want the entire stack to show simply pass the input:
class MyBacktraceFilter
def filter bt
bt
end
end
MiniTest.backtrace_filter = MyBacktraceFilter.new