title: ActionDispatch::IntegrationTest suppresses exceptions
body: <p>When debugging failing integration tests, I keep running into the same problem where the exceptions raised in my code are suppressed and not shown in the testing output. </p>
  
  <p>For example, for the following controller and test:</p>
  
  
  
  <pre class="lang-rb prettyprint-override"><code>class RegistrationController::ApplicationController
    def create
      # some code that raises an exception
    end
  end
  </code></pre>
  
  
  
  <pre class="lang-rb prettyprint-override"><code>class RegistrationFlowTest &lt; ActionDispatch::IntegrationTest
  
    test 'user registers successfully' do
      post sign_up_path, params: { username: 'arnold', password: '123' }
      assert_response :success  
    end
  
  end
  </code></pre>
  
  <p>The output is something like</p>
  
  <pre class="lang-rb prettyprint-override"><code>Minitest::Assertion: Expected response to be a &lt;2XX: success&gt;, but was a &lt;500: Internal Server Error&gt;
  </code></pre>
  
  <p>Is there a way to see the exact raised exception? Instead of just the difference of HTTP response code?</p>
  
  <p>Thanks!</p>
  
  <p>Simon</p>