I have a potentially long-running test written with scalatest:
test(\"a long running test\") {
failAfter(Span(60, Seconds)) {
// ...
}
}
In addition to r.v.'s answer:
If you have multiproject builds the testOptions in Test += Tests.Argument("-oD")
does not work on root level in build.sbt, because Test refers to src/test/scala. You have to put it inside your Sub-Project settings
Project(id = "da_project", base = file("da_project"))
.settings(
testOptions in Test += Tests.Argument("-oDG"),
libraryDependencies ++= Seq(
...
)
)