gradle swallowing exception traces from scalatest tests

Viewed 391

I have this in my build.gradle:

 test {
   testLogging {
     exceptionFormat 'full'
     showExceptions true
     showStackTraces true
   }
 }

This works with java ("plain" junit) tests, but when I running scalatest tests, even with -i on command line, all I get in case of a failure is something like this:

com.mypackage.mytests.ScalatestSpec >  .apply should fail miserably FAILED
org.scalatest.exceptions.TestFailedException: 2 was not equal to 1

No traceback or even a line number is printed out, and I have to rerun the test manually to be able to see where it actually failed. Is there another special flag I have to set to get it to stop following my output?

0 Answers
Related