Skip to content

Commit

Permalink
[debug] increase verbosity in failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Oct 2, 2024
1 parent 85c26a2 commit c893565
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -129,6 +129,9 @@ trait RunPipedSourcesTestDefinitions { _: RunTestDefinitions =>
scalaSnippet,
"--java-snippet",
javaSnippet,
"-v",
"-v",
"-v",
extraOptions
)
.call(cwd = root, stdin = pipedInput)
Expand Down

0 comments on commit c893565

Please sign in to comment.