Skip to content

Commit

Permalink
csl: add stack traces to asserts in sbt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ruben Oanta authored and jenkins committed Sep 5, 2017
1 parent 7cc913e commit c3b5aa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit c3b5aa4

Please sign in to comment.