Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capybara: exception trace in log

While running integration tests in capybara, having app raise an exception (500 error; is rendered in browser) there's no stack trace in test.log file. Here's the only line I see there:

Completed 500 Internal Server Error in 25ms

Am I missing something? How do I make stacktraces appear in test.log during integration testing?

like image 286
ulmen Avatar asked Apr 11 '12 14:04

ulmen


1 Answers

Go examine your config/environments/test.rb to find the line:

config.action_dispatch.show_exceptions = false

And change it to true.

like image 163
gmile Avatar answered Nov 14 '22 01:11

gmile