testify icon indicating copy to clipboard operation
testify copied to clipboard

Feature Request: file path in stack traces

Open ravishi opened this issue 6 years ago • 1 comments

Currently, when a test fails, testify will gently print a stack trace of sorts.

That is very useful, one could say even essential, while debugging and or refactoring.

But it also has some limitations. Namely, it doesn't print the complete path to the file, only it's filename. That works very well when all your test code is contained in a single file. But what happens when you use helper functions? And what about when you have files with the same name in different packages? It get's a little confusing.

So I would like to request that we offer a way to print the whole path to the files in that stack trace. Maybe we could only print when tests are called with -v?

ravishi avatar Sep 19 '19 15:09 ravishi

This has been the behavior for some time.

muir avatar Feb 18 '23 22:02 muir

Alright, I can attest it is the current behavior. Closing this FR as outdated. Thank you!

ravishi avatar Mar 03 '23 15:03 ravishi