[go-nuts] Re: Passing -v=10 flag to glog when running tests

2017-01-15 Thread eduncan911
Btw, I have to make a correction to my previous post (see below). This init() doesn't seem to take effect all the time (or at all in some projects). I also tried putting them into TestMain instead inside of my test files with the same "doesn't always work" result (most of the time, it does no

[go-nuts] Re: Passing -v=10 flag to glog when running tests

2016-08-24 Thread imesh . gunaratne
On Thursday, May 12, 2016 at 11:33:40 PM UTC+5:30, edunc...@gmail.com wrote: > > This is what I use with glog in my test file(s): > > func init() { > if testing.Verbose() { > flag.Set("alsologtostderr", "true") > flag.Set("v", "5") > } > } > > (I just ran into this today, fyi) > Thanks! This was u