title: How to fail a Test in ScalaTest and print stacktrace?
body: <p>In ScalaTest, I fail a test by:</p>
  
  <pre><code>fail("message")
  </code></pre>
  
  <p>It only prints message in a red highlight but does not print stacktrace.</p>
  
  <p>I had to do a very awkward way like:</p>
  
  <pre><code>try { throw new Exception } catch { case e =&gt; 
    e.printStackTrace()
    fail("message")
  }
  </code></pre>
  
  <p>to get the stacktrace.</p>
  
  <p>I tried to do <code>fail("message", new Exception)</code> and it does not print either. Is there any better way to do this?</p>