Getting stack trace from SBT using Scala

Context: Writing Scala unit tests in a project managed by SBT.

When I execute sbt testto run my unit tests, assert doesn't work somewhere in my code, I get something like the following (and nothing more):

Test com.reach.ml.test.TestLSHEasy.T0 failed: assertion failed

This tells me which unit test caused the assert to fail, but didn't claim it was. If I run the same test directly (without using sbt), I get a whole stack trace, which is very useful for debugging. So my question is: how do I get SBT to print a stack trace when a test fails?

+5
source share
1 answer
+2

All Articles