erlang rebar

阅读更多

1、eunit

https://github.com/basho/rebar/wiki/Getting-started

a、代码中增加eunit

b、rebar compile eunit进行编译+单元测试

c、在rebar.config中增加{cover_enabled, true},再rebar compile eunit,则生成myapp/.eunit/index.html覆盖度检查结果

 

2、dialyzer

 

3、xref

 

D:\project\erlang\rebar_test\myapp>rebar compile xref

==> myapp (compile)

Compiled src/myapp_app.erl

Compiled src/myapp_sup.erl

==> myapp (xref)

src/myapp_sup.erl:19: Warning start_link/0 calls undefined function my_test:test/0

ERROR: xref failed while processing D:/project/erlang/rebar_test/myapp: rebar_abort

你可能感兴趣的:(erlang rebar)