10

is it easy way to limit stack trace only to files in application? Long stacktrace is messy and most errors are directly in app.

Sławosz
  • 11,187
  • 15
  • 73
  • 106

2 Answers2

8

Normally the stacktrace is shortened automatically, unless you specify the option --backtrace in .rspec file.

Maybe this question is helpful for you. They try to achieve the opposite, but it shows the point where you can hook in and overrule it.

Community
  • 1
  • 1
nathanvda
  • 49,707
  • 13
  • 117
  • 139
0

I don't think there is currently a way to further reduce the stacktrace, but I'm with you - it would be nice to be able to add something like --backtrace 4 to .rspec that would limit it to 4 lines

rdaniels
  • 939
  • 8
  • 7