~ubuntu-branches/ubuntu/saucy/rabbitmq-server/saucy

« back to all changes in this revision

Viewing changes to plugins-src/rabbitmq-management/test/src/rabbit_mgmt_test_all.erl

  • Committer: Package Import Robot
  • Author(s): Emile Joubert
  • Date: 2012-11-19 11:42:31 UTC
  • mfrom: (0.2.18) (0.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20121119114231-hvapkn4akng09etr
Tags: 3.0.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
all_tests() ->
22
22
    ok = eunit:test(rabbit_mgmt_test_unit,[verbose]),
23
 
    ok = eunit:test(rabbit_mgmt_test_http,[verbose]),
 
23
    ok = eunit:test(tests(rabbit_mgmt_test_http, 60), [verbose]),
24
24
    io:format("Starting second node...~n"),
25
25
    ok = rabbit_mgmt_test_clustering:start_second_node(),
26
26
    io:format("...done.~n"),
30
30
        ok = rabbit_mgmt_test_clustering:stop_second_node()
31
31
    end,
32
32
    ok = rabbit_mgmt_test_db:test().
 
33
 
 
34
 
 
35
tests(Module, Timeout) ->
 
36
    {foreach, fun() -> ok end,
 
37
     [{timeout, Timeout, fun Module:F/0} ||
 
38
         {F, _Arity} <- proplists:get_value(exports, Module:module_info()),
 
39
         string:right(atom_to_list(F), 5) =:= "_test"]}.