Notice, there's no Test name (instead: .()) and there's only the file:line info for the exact line of the assertion, any indicator of the file:line of the current test is missing. Would it be possible to back-fill that information from within the deferred Teardown call?
This will require some sort of AST scan to build up a map[fixture-name|test-name]file:line. We can get the *testing.T.Name() when any assertion fails and get to the file:line of the containing test.
Test Output:
Notice, there's no Test name (instead:
.()
) and there's only the file:line info for the exact line of the assertion, any indicator of the file:line of the current test is missing. Would it be possible to back-fill that information from within the deferred Teardown call?Expected Test Output: