Don't print stack trace for pending tests

This can be very noisy, especially for tests that are marked pending
because they fail to load the build. These induce a lengthy and largely
unhelpful "Reload for batch scripted failed..." error message.
This commit is contained in:
Ethan Atkins 2019-11-21 07:46:37 -08:00
parent 5377fb98df
commit a708cac2a3
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ final class ScriptedTests(
if (t.isInstanceOf[TestException]) {
t.getCause match {
case null | _: SocketException => log.error(s" Cause of test exception: ${t.getMessage}")
case _ => t.printStackTrace()
case _ => if (!pending) t.printStackTrace()
}
log.play()
}