not output exception stack trace in EUnit

Posted by hpyhacking on Stack Overflow See other posts from Stack Overflow or by hpyhacking
Published on 2012-05-09T02:52:36Z Indexed on 2012/07/06 15:16 UTC
Read the original article Hit count: 276

Filed under:
|

I'm write a test with EUnit, but not anything exception detail output in console.

exp_test() ->
  ?assertEqual(0, 1/0).

Run this module:exp_test() in the Erlang Shell output following

** exception error: bad argument in an arithmetic expression
 in function  exp_test:'-exp_test/0-fun-0-'/1 (src/test/eunit/xxx_test.erl, line 8)

But in EUnit output following

> eunit:test(xxx).
> xxx_test: exp_test...*failed*
  ::badarith

EUnit not output anything exception trace info

Im trying the verbose config in eunit, but no effect.

I want to output some exception detail in eunit test result.

Thanks~

© Stack Overflow or respective owner

Related posts about erlang

Related posts about eunit