【发布时间】:2011-10-23 23:18:39
【问题描述】:
运行时:
./rebar eunit
测试也针对外部依赖项运行。有没有办法改变这种行为?也许通过 rebar.config 文件?
【问题讨论】:
运行时:
./rebar eunit
测试也针对外部依赖项运行。有没有办法改变这种行为?也许通过 rebar.config 文件?
【问题讨论】:
你也可以使用
./rebar eunit apps=your_app1,your_app2
这将只为指定的应用程序运行 eunit 测试。
【讨论】:
还有一个选项可以仅为特定应用程序运行测试:
./rebar eunit app=app_name
【讨论】:
./rebar eunit skip_deps=true
(或recursive=false 最新版本)。
【讨论】:
./rebar clean get-deps compile eunit skip_deps=true 不起作用 -- 为什么不?因为rebar 也会跳过 compile 依赖项!不过,单独的命令 ./rebar clean get-deps compile 和 ./rebar eunit skip_deps=true 可以工作。