How to show longer traces in Rails TestCases

前端 未结 4 2399
走了就别回头了
走了就别回头了 2021-02-15 17:19

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

4条回答
  •  没有蜡笔的小新
    2021-02-15 17:56

    You could try setting global variable $DEBUG to non-nil value. If that's minitest who filters your backtrace, setting $DEBUG = true would ensure that the entire backtrace is printed out.

提交回复
热议问题