I am writing a test with EUnit, but it doesn’t output anything to the console.
exp_test() -> ?assertEqual(0, 1/0).
Run this module: exp_test () in the output of the Erlang shell after
** 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 after
> eunit:test(xxx). > xxx_test: exp_test...*failed* ::badarith
EUnit does not display exception tracing information
I am trying to do complex configuration in eunit, but with no effect.
I want to output some details of the exception to the eunit test result.
Thanks ~
hpyhacking
source share