Output glog from go test

2020-03-18

Glog · Golang · Test

1 minute

If you’re using glog in your Go codes, you can output those when running go test ... by using the --args parameter:

$ go test -v ./... -count=1 -cover -race -mod=vendor --args --logtostderr --v=1