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
FOO But 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
mage
and 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 test
directly I can get the verbose output withgo test -v
.Is it possible to pass flags to
mage
that can be passed on togo test
I've tried with
mage test -v
which returnsUnknown target specified: "-v"
mage test v
which returnsUnknown target specified: "v"
mage -v test
which outputs as the first lineRunning target: Test
mage test -- -v
no extra outputand
mage test -- v
returnsUnknown target specified: "--"
If I can get a way to pass params through
mage
to thego test
tool I can also add things like-run
Beta Was this translation helpful? Give feedback.
All reactions