[go-nuts] Re: Multiple libraries, init() and a request for help

2017-01-15 Thread eduncan911
Not sure when Golang added the -args option to Tests. But this now works: $ go test -cover -v -run TestEventsTableTests -args -v 3 -logtostderr true The -args parameter allows you to pass in package-level flags into the binary and test package to run. For example, the glog logging packa

[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