2020 02 23 scalatest show test duration (#1159)

* Make scalatest build show test duration

* Use more idiomatic flag passing
This commit is contained in:
Chris Stewart 2020-02-23 10:22:28 -06:00 committed by GitHub
parent 7652105bdd
commit 89b8989b2f

View File

@ -60,10 +60,6 @@ object CommonSettings {
Seq("-source", "1.8", "-target", "1.8")
}
},
//show full stack trace of failed tests
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oF"),
//show duration of tests
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oD"),
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
// Travis has performance issues on macOS
Test / parallelExecution := !(Properties.isMac && isCI)
@ -107,6 +103,9 @@ object CommonSettings {
val testCompilerOpts: Seq[String] = commonCompilerOpts
lazy val testSettings: Seq[Setting[_]] = Seq(
//show full stack trace (-oF) of failed tests and duration of tests (-oD)
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oDF"),
logBuffered in Test := false,
publish / skip := true
) ++ settings