[erlang-questions] Getting eunit to display the full term?

Rudolph van Graan rvg.mailing@REDACTED
Sun Jul 3 21:24:56 CEST 2011


Hi there,

Is there a simple way (other than changing the source) to make eUnit display the entire term that didn't match in its output instead of the ... truncation? I find it pointless to have write a manual version of the test just to see what is not matching.

Thanks,

Rudolph

Compiled src/validator.erl
validator:70: duplicate_check_test_...*failed*
::error:{assertMatch_failed,
         [{module,validator},
          {line,71},
          {expression,
              "parser : compile_and_validate ( message ( 2 ) )"},
          {expected,"ok"},
          {value,
              {error,
                  [{specification_error,duplicate_element,
                       "Duplicate",
                       [{element_spec,12,...},
                        {element_spec,...}]},
                   {specification_error,duplicate_element,
                       "Elements",
                       [{element_spec,...},{...}]}]}}]}
 in function validator:'-duplicate_check_test_/0-fun-2-'/0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110703/3bb5e059/attachment.htm>


More information about the erlang-questions mailing list