diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-09-15 10:09:23 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-09-15 10:09:23 +0100 |
commit | e9c571482be725fc9e28a18ab89445af11b3db0a (patch) | |
tree | 386281a248bf499639f108879c384a21a2012cb7 /src | |
parent | 50019174c7567fbfcc9dd34d479aa7111d7de88e (diff) | |
download | rabbitmq-server-e9c571482be725fc9e28a18ab89445af11b3db0a.tar.gz |
Stack trace on test failure.
Diffstat (limited to 'src')
-rw-r--r-- | src/rabbit_tests.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index 8dc51f37..fda37bfa 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -32,6 +32,16 @@ -define(TIMEOUT, 5000). all_tests() -> + try + all_tests0() + catch + Type:Error -> + rabbit_misc:format( + "Tests failed~nError: {~p, ~p}~nStack trace:~n~p~n", + [Type, Error, erlang:get_stacktrace()]) + end. + +all_tests0() -> ok = setup_cluster(), ok = truncate:test(), ok = supervisor2_tests:test_all(), |