Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
test with debugger task in SBT
scalaVersion := "2.11.8"
lazy val FunTest = config("fun") extend Test
lazy val root = (project in file(".")).
configs(FunTest).
// important see http://www.scala-sbt.org/0.13/docs/Testing.html#Additional+test+configurations+with+shared+sources
settings(inConfig(FunTest)(Defaults.testTasks): _*).
settings(
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % "test",
fork in FunTest := true,
javaOptions in FunTest ++= Seq("-Xdebug", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment