[erlang-patches] [PATCH] eunit: Format stacktraces with location information

Richard Carlsson carlsson.richard@REDACTED
Mon Feb 13 10:43:46 CET 2012


On 02/12/2012 06:51 PM, Klas Johansson wrote:
> Hi,
>
> I've noticed that eunit doesn't print stacktraces correctly since the
> new format (with filenames and line numbers) was introduced in R15.
> Here's a patch which addresses that.

Thanks. I modified the patch, because it needs to be backwards 
compatible as well. I also found that the stack pruning code (which 
removes internal eunit functions from the printed stack) had to be 
updated to know about the new format. You can look at it here:

   https://github.com/richcarl/eunit/commits/new-stack-traces

Unless you find any mistakes, I'll merge it to the EUnit master branch 
and will bring it from there into OTP.

    /Richard



More information about the erlang-patches mailing list