Add test for --jvm-debug

This commit is contained in:
abe 2020-03-04 12:05:41 +09:00
parent bcf5f020fe
commit 2242091012
1 changed files with 6 additions and 0 deletions

View File

@ -190,4 +190,10 @@ object SbtRunnerTest extends SimpleTestSuite with PowerAssertions {
assert(out.contains[String]("[info] HelloTest"))
()
}
test("sbt --jvm-debug <port>") {
val out = sbtProcess("--jvm-debug", "12345", "compile", "-v").!!.linesIterator.toList
assert(out.contains[String]("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=12345"))
()
}
}