I 사용자 철근은 "EUNIT을 컴파일 철근"명령으로 EUNIT 시험을하지만, 오류 정보를 얻을 수 있습니다 :철근 컴파일 EUNIT 오류
==> myapp (compile)
==> myapp (eunit)
src/myapp_app.erl:8: badly formed 'include_lib'
src/myapp_app.erl:26: undefined macro 'assertNot/1'
ERROR: eunit failed while processing /Users/Dao/ErlProject/myapp: rebar_abort
난 정말이 평균은 말해 줄 수있는 방법을 모르는를 왜?
PS :
-ifdef(TEST).
-include_lib(“eunit/include/eunit.hrl”).
-endif.
........
-ifdef(TEST).
simple_test() ->
ok = application:start(myapp),
?assertNot(undefined == whereis(myapp_sup)).
-endif.
를 그리고 여기에서 나온 것 : 내 영어는 가난, 같은 날
myapp_app.erl를 용서해주십시오 https://github.com/rebar/rebar/wiki/Getting-started
을 나는 단계를 수행하지만 얻었다 오류! OS X 라이온
에
을 변경? 또는 적어도 8 행, 문제의 include_lib. – chops
감사합니다! myapp_app.erl의 텍스트를 추가합니다. –
감사합니다. 덕분에 도움이되었습니다. 나는 대답을 게시했다. – chops