Skip to content

Instantly share code, notes, and snippets.

@yfyf
Created June 20, 2013 10:43
Show Gist options
  • Save yfyf/5821791 to your computer and use it in GitHub Desktop.
Save yfyf/5821791 to your computer and use it in GitHub Desktop.
Full Eunit assert output
-define(FULL_EUNIT_OUTPUT(Expr),
begin
try Expr
catch
_:Foo ->
?debugFmt("~n~100P~n", [Foo, 999999]),
erlang:error(eunit_assert_failed)
end
end).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment