-
Notifications
You must be signed in to change notification settings - Fork 148
gb test -v / test.v should always output test output #438
Comments
#450 broke the debug logging out of gb, so -v is free to be used to enable test debug output. |
The behavior differs a bit from |
Please note, this issue is marked as closed. The behaviour of go test is inconsistent, when run with only a single package, all output is sent to stdout unbuffered, when run with multiple packages, output is buffered. gb test always buffers the output even when there is one package because the gb default behaviour is to do the equivalent of |
Would you prefer I open a new issue? I didn't realize go test's behavior was inconsistent. That partly explains some confusion that both I and a colleague had when getting started with Go. However, I think the rest of the confusion is the buffering of output in the first place. What's the advantage of doing that when verbose logging is enabled? Seems like a strict disadvantage in that it is misleading about which test is running and make it very annoying to debug via printf. |
gb always tests packages in parallel, so does the go tool providing you On Fri, Feb 26, 2016 at 2:07 PM, Brandon Bloom notifications@github.com
|
Huh, I had no idea it did that either. I guess it's only documented in |
Currently test output is suppressed unless the test fails, in which case everything is printed.
Passing
-v
to gb test should case the output to be printed always, even if successfulThe text was updated successfully, but these errors were encountered: