Test output verbosity #512
Unanswered
shaneHowearth
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
One way that I thought that I could sort of pass parameters to the target is via shell environmant variables. func Test() error {
fmt.Println("FOO", os.Getenv("FOO"))
[...]
}and then set the env var in my shell $ FOO="red" mage test
FOOBut this didn't appear to work |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am using
mageand run tests with it (mage test) but I cannot find a way to get the verbose output for tests.As is well known, if I use
go testdirectly I can get the verbose output withgo test -v.Is it possible to pass flags to
magethat can be passed on togo testI've tried with
mage test -vwhich returnsUnknown target specified: "-v"mage test vwhich returnsUnknown target specified: "v"mage -v testwhich outputs as the first lineRunning target: Testmage test -- -vno extra outputand
mage test -- vreturnsUnknown target specified: "--"If I can get a way to pass params through
mageto thego testtool I can also add things like-runBeta Was this translation helpful? Give feedback.
All reactions