We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, if we want to visualize trace of each test ,we need to manually add a line:
func TestHelloWorld(t *testing.T){ defer trace.Begin()() ... }
But if we don't want trace, we need to manually remove that line, this causes some inconvenience.
So, propose adding a flag --trace flag, that will look like:
--trace
xgo test --trace -run TestHelloWorld
If --trace=off or not present, no trace will output.
--trace=off
The text was updated successfully, but these errors were encountered:
But it seems go test -trace trace.out is already take, so we need another flag.
go test -trace trace.out
Change this flag to --stack-trace or --xgo-trace or --strace.
--stack-trace
--xgo-trace
--strace
--strace is better because it is shorter.
Sorry, something went wrong.
resolved in #69
No branches or pull requests
Currently, if we want to visualize trace of each test ,we need to manually add a line:
But if we don't want trace, we need to manually remove that line, this causes some inconvenience.
So, propose adding a flag
--trace
flag, that will look like:xgo test --trace -run TestHelloWorld
If
--trace=off
or not present, no trace will output.The text was updated successfully, but these errors were encountered: