繁体   English   中英

运行rebar ct时如何跳过deps?

[英]How to skip deps when running rebar ct?

我有一个看起来像这样的rebar.config文件:

{sub_dirs, ["apps/app1", "apps/app2"]}.
{lib_dirs, ["deps"]}.
{deps, [
        %% etc.
   ]}.

当我从顶级目录运行./rebar ct ,它会递归到“deps”文件夹并开始在那里以及我的应用程序目录中运行 Common Test。

由于这会大大增加构建时间,并且由于依赖项在发布之前应该已经通过了测试,我希望 rebar 不要这样做。

我如何让它只对我的代码运行ct (和eunit ),而忽略deps文件夹?

您可以使用skip_deps选项:

rebar ct skip_deps=true

rebar eunit skip_deps=true

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM