From 2242091012afd8d63514af28a0e0f101f7c6d078 Mon Sep 17 00:00:00 2001 From: abe Date: Wed, 4 Mar 2020 12:05:41 +0900 Subject: [PATCH] Add test for --jvm-debug --- integration-test/src/test/scala/RunnerTest.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration-test/src/test/scala/RunnerTest.scala b/integration-test/src/test/scala/RunnerTest.scala index b907828ec..29a0be9bb 100755 --- a/integration-test/src/test/scala/RunnerTest.scala +++ b/integration-test/src/test/scala/RunnerTest.scala @@ -190,4 +190,10 @@ object SbtRunnerTest extends SimpleTestSuite with PowerAssertions { assert(out.contains[String]("[info] HelloTest")) () } + + test("sbt --jvm-debug ") { + 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")) + () + } }