I use Go's native test facility (
go test) to write a test. But when the test fails due to a bug in test code, I really can't debug it due to lack of stack trace or any other contextual informations.
And even, the test code needs one contextual object
t, so it is not simple work running the test code in normal mode.
What is the best practice to debug test code?