when run "make utest", meet crash.
Closed this issue · 3 comments
wangyangkobe commented
root@iZ11vpvnl7yZ:~/elli# make eunit
./rebar eunit skip_deps=true
==> elli (eunit)
Compiled src/elli_handler.erl
Compiled test/elli_http_tests.erl
test/elli_ssl_tests.erl:58: Warning: function body/1 is unused
test/elli_ssl_tests.erl:61: Warning: function headers/1 is unused
Compiled test/elli_ssl_tests.erl
Compiled test/elli_handover_tests.erl
Compiled test/elli_middleware_tests.erl
Compiled test/elli_tests.erl
Compiled src/elli.erl
Compiled src/elli_test.erl
Compiled src/elli_tcp.erl
Compiled src/elli_middleware_compress.erl
Compiled src/elli_util.erl
Compiled src/elli_example_callback_handover.erl
Compiled src/elli_middleware.erl
Compiled src/elli_example_middleware.erl
Compiled src/elli_example_callback.erl
Compiled src/elli_request.erl
Compiled src/elli_http.erl
elli_tests: register_test...*skipped*
undefined
*unexpected termination of test process*
::{{badmatch,{error,eaddrinuse}},
[{elli,init,1,[{file,"src/elli.erl"},{line,111}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
=======================================================
Failed: 0. Skipped: 0. Passed: 54.
One or more tests were cancelled.
Cover analysis: /root/elli/.eunit/index.html
=INFO REPORT==== 25-Oct-2016::12:30:37 ===
application: inets
exited: stopped
type: temporary
ERROR: One or more eunit tests failed.
ERROR: eunit failed while processing /root/elli: rebar_abort
make: *** [eunit] Error 1
root@iZ11vpvnl7yZ:~/elli#
So i want know how to run unittest for elli?
andreashasse commented
I don't get any errors when running the unit tests in elli. The error message that you get (eaddrinuse) hint to that you might have something running on the same port as is used in register_test in elli_tests.erl. The port used in that test is the default port, which is 8080.
andreashasse commented
@wangyangkobe: Can I close this ticket?
wangyangkobe commented
@anha0825 Yes, you can. Thanks!