-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go Tests Are Verbose By Default #471
Comments
@swtch1 thanks for the report. This is an oversight while transitioning to use |
Change https://golang.org/cl/246918 mentions this issue: |
Change https://golang.org/cl/247017 mentions this issue: |
CL/242540 made runTest uses -json mode to ease streaming test output processing. However, it turned out -json makes the test output more verbose than the standard test output. (golang/go#40588) Verbose output by default is not ideal especially when running tests on many packages. This change brings back the old test output processing logic when users do not use the `-v` flag. The `go test` command will stream test output only if the `-v` flag is specified, so the original issue CL/242540 remains addressed. Fixes #471 Updates #316 Updates golang/go#40588 Change-Id: I29d6d1319acccab2457300c118216ceebb4c4033 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/246918 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]> (cherry picked from commit bec9cf3) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/247017 Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
Hello @hyangah I am already using v0.16.1 but I still face this problem, it output all logs from the code, but it doesn't verbose out the go test log (such as === RUN etc). Usually, the output is verboseless, and I haven't changed any configs at all. |
@leguminosa can you open a new issue and share your settings and the Go Test output? |
Please direct general questions to:
#vscode
channel in Gophers SlackPlease review the documentation before filing an issue.
Helpful pages include:
Please answer these questions before submitting your issue. Thanks!
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders485c41f9460bdb830c4da12c102daff275415b53
x64
go env
to get the go development environment detailsGO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/josh/.cache/go-build"
GOENV="/home/josh/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY="bitbucket.org"
GONOSUMDB="bitbucket.org"
GOOS="linux"
GOPATH="/home/josh/go"
GOPRIVATE="bitbucket.org"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build567801905=/tmp/go-build -gno-record-gcc-switches"
Share the Go related settings you have added/edited
Ran with all vscode settings disabled.
Describe the bug
What I did:
Use any of the
Go: Test ...
commandsWhat did I expect:
For
go test
to run with less verbosityWhat happend:
Go test appears to run increased verbosity, as if the
-v
flag is being implicitly passed togo test
.Steps to reproduce the behavior:
-v
flag.Go: Test All Packages In Workspace
commandv0.16.0
v0.15.2
The text was updated successfully, but these errors were encountered: