Skip to content

Instantly share code, notes, and snippets.

@takashima0411
Last active March 10, 2018 09:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takashima0411/4ac0861da59e82f7f1bf4f5cb28afa15 to your computer and use it in GitHub Desktop.
Save takashima0411/4ac0861da59e82f7f1bf4f5cb28afa15 to your computer and use it in GitHub Desktop.
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