I am encoding a unit test where a (rather long) binary is generated, and I want to maintain that the generated binary is equal to the one I expect to be generated. I run eunit through the reinforcement eunit .
The thing is, when this statement fails, it prints with " ... ", and I want to see the full output so that I can determine where the difference is.
Now I use " ? DebugFmt () " as a temporary solution, but I would like to know if there is an alternative there (an option or configuration argument somewhere that can be applied to " ? _ AssertEqual () ", so the output is only shown when unsuccessful statement).
Thanks in advance!
EDIT: due to legoscia's answer , I am including a test sample using a test generator with a few statements:
can_do_something(SetupData) ->
% ... some code ...
[?_assertEqual(Expected1, Actual1), ?_assertEqual(Expected2, Actual2)].
source
share