From c89356509f178e0a645a5bde8dedf1519902659d Mon Sep 17 00:00:00 2001 From: Piotr Chabelski Date: Wed, 2 Oct 2024 12:37:36 +0200 Subject: [PATCH] [debug] increase verbosity in failing tests --- .../scala/cli/integration/RunGistTestDefinitions.scala | 2 +- .../cli/integration/RunPipedSourcesTestDefinitions.scala | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/integration/src/test/scala/scala/cli/integration/RunGistTestDefinitions.scala b/modules/integration/src/test/scala/scala/cli/integration/RunGistTestDefinitions.scala index 8cfdb61198..389cc726e0 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/RunGistTestDefinitions.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/RunGistTestDefinitions.scala @@ -38,7 +38,7 @@ trait RunGistTestDefinitions { _: RunTestDefinitions => "https://gist.github.com/alexarchambault/f972d941bc4a502d70267cfbbc4d6343/raw/2691c01984c9249936a625a42e29a822a357b0f6/Test.java" val message = "Hello from Java GitHub Gist" emptyInputs.fromRoot { root => - val output = os.proc(TestUtil.cli, extraOptions, escapedUrls(url)) + val output = os.proc(TestUtil.cli, extraOptions, "-v", "-v", "-v", escapedUrls(url)) .call(cwd = root) .out.trim() expect(output == message) diff --git a/modules/integration/src/test/scala/scala/cli/integration/RunPipedSourcesTestDefinitions.scala b/modules/integration/src/test/scala/scala/cli/integration/RunPipedSourcesTestDefinitions.scala index 0f3972a338..6303a8cc9f 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/RunPipedSourcesTestDefinitions.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/RunPipedSourcesTestDefinitions.scala @@ -64,7 +64,7 @@ trait RunPipedSourcesTestDefinitions { _: RunTestDefinitions => |} |""".stripMargin emptyInputs.fromRoot { root => - val output = os.proc(TestUtil.cli, "_.java", extraOptions) + val output = os.proc(TestUtil.cli, "_.java", "-v", "-v", "-v", extraOptions) .call(cwd = root, stdin = pipedInput) .out.trim() expect(output == expectedOutput) @@ -88,7 +88,7 @@ trait RunPipedSourcesTestDefinitions { _: RunTestDefinitions => |} |""".stripMargin emptyInputs.fromRoot { root => - val output = os.proc(TestUtil.cli, "_.java", extraOptions) + val output = os.proc(TestUtil.cli, "_.java", "-v", "-v", "-v", extraOptions) .call(cwd = root, stdin = pipedInput) .out.trim() expect(output == expectedOutput) @@ -129,6 +129,9 @@ trait RunPipedSourcesTestDefinitions { _: RunTestDefinitions => scalaSnippet, "--java-snippet", javaSnippet, + "-v", + "-v", + "-v", extraOptions ) .call(cwd = root, stdin = pipedInput)