Running go test with any of the standard flags throws an "flag provided but not defined:" error
domthinks opened this issue · 6 comments
Hi,
When using the this package and running go test
with any of the testing package's testflags I get an error.
For example, running go test -v
will produce the following :
flag provided but not defined: -test.v
The test.v
is used to print out verbose output (https://golang.org/src/testing/testing.go).
chatty= flag.Bool("test.v", false, "verbose: print additional output")
Is there any way to make this package aware of other (Go) flags. This will allow the usage of testflags.
Thanks
-Dom
Could you post a gist with some test code of what you're trying to achieve?
Unfortunately, the project was changed to instead use the built-in environment variables via os.Setenv
. However, I could try to reproduce the error again by checking out the old version of the code.
Thank you for your response.
-Dom
I'm closing the issue but will reopen when you have time to reproduce the error, thanks.
@domthinks Can you confirm 59ceb74 from the testflag branch fixes your issue running go test -v
?