Last active
March 10, 2018 09:46
-
-
Save takashima0411/4ac0861da59e82f7f1bf4f5cb28afa15 to your computer and use it in GitHub Desktop.
test with debugger task in SBT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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