From c3b5aa48ade62eef7d3f68ee3d149cb3eefb3e79 Mon Sep 17 00:00:00 2001 From: Ruben Oanta Date: Tue, 5 Sep 2017 17:49:34 +0000 Subject: [PATCH] csl: add stack traces to asserts in sbt Summary: Problem / Solution In cases where we use asserts in java tests, it's useful to see the stack traces when they fail so we can more easily debug the offending test. Differential Revision: https://phabricator.twitter.biz/D87482 --- build.sbt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sbt b/build.sbt index f62658ef..a40b6a69 100644 --- a/build.sbt +++ b/build.sbt @@ -53,6 +53,9 @@ val sharedSettings = Seq( // This is bad news for things like com.twitter.util.Time parallelExecution in Test := false, + // -a: print stack traces for failing asserts + testOptions += Tests.Argument(TestFrameworks.JUnit, "-a"), + // Sonatype publishing publishArtifact in Test := false, pomIncludeRepository := { _ => false },