gotestsum icon indicating copy to clipboard operation
gotestsum copied to clipboard

testname format still prints failure output with --hide-summary=output

Open Tadimsky opened this issue 1 year ago • 2 comments

I would like to use the testname format for our tests as we like being able to see each test that passed. However, when a test fails, it prints out all of the output of that test which in our case can be many megabytes of log output.

I've tried suppressing this with --hide-summary=output but it looks like it's not from the summary and is rather part of the testname output.

I'm running these tests in GitLab CI and so whenever there is a test failure GitLab is unable to capture all of the output and so we can't see what actually happened. I'm sending the standard-verbose output to a file so I can look there to see exactly what happened.

Is there some config that I'm missing that will let me do this? Or is this something that testname does not support?

Tadimsky avatar May 04 '23 18:05 Tadimsky