FAQ
On Tue, Sep 22, 2015, 19:29 wrote:



Declare test flags in your foo_test.go at pkg level:

var x = flag.Bool(...)

Do not call flag.Parse in the test file. No need for TestMain either.
--

-j

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 6 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 22, '15 at 5:29p
activeSep 22, '15 at 8:34p
posts6
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase