Open mcabbott opened 2 years ago
I think this is actually do do with the way the Test stdlib rewrites stack-traces. I have gone digging before but i don't recall what my conclusion was.
I think it cuts off stacktraces when it hits the file where the @test
macro was used.
Which is a problem if calling a function that defines a test suite.
Here is the code in the Test stdlib. https://github.com/JuliaLang/julia/blob/98e1b13a7db5aa1d05b9a48085993375cf2298d0/stdlib/Test/src/Test.jl#L53-L67 Maybe we can monkey patch it off?
When tests fail, I think this package is somehow helpfully capturing the error (with
try
) and hiding it:Can this be removed?
The default behaviour is to print the stacktrace, which is useful information about what's actually caused the error, and where it was called from. (Not
testers.jl:193
.)