<html><body><div>I have one test case that fails because something it calls crashes. I see this output after running the test:</div><div><br></div><div><div>======================== EUnit ========================</div><div>*failed*</div><div>::undef</div><div>=======================================================</div><div> Failed: 1. Skipped: 0. Passed: 0.</div></div><div><br></div><div><br></div><div>I know WHY it fails. The test consists of this single line of code:</div><div><br></div><div><div> ?assertMatch(ok,my_app:install()),</div></div><div><br></div><div>If I change the assertMatch to assertError, I get the real reason for the crash:</div><div><br></div><div><div>*failed*</div><div>::{assertException_failed,</div><div> [{module,cache_tests},</div><div> {line,45},</div><div> {expression,"app : install ( )"},</div><div> {pattern,"{ error , ok , [...] }"},</div><div> {unexpected_exception,</div><div> {error,undef,</div><div> [{util,get_value,[frag_properties,[{...}|...]],[]},</div><div> {app,'-install/2-fun-0-',4,[{...}|...]},</div><div> {lists,foldl,3,[...]},</div><div> {app,install,2,...},</div><div> {cache_tests,'-start_stop/0-fun-0-',...},</div><div> {cache_tests,...},</div><div> {...}|...]}}]}</div></div><div><br></div><div>My question is... what am I doing wrong so that I don't get the crash stack and details when I just use assertMatch(...) ?</div><div><br></div><div>Thanks,</div><div><br></div><div>R</div></body></html>