简体   繁体   English

运行rebar ct时如何跳过deps?

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

I've got a rebar.config file that looks like this:我有一个看起来像这样的rebar.config文件:

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

When I run ./rebar ct from the top-level directory, it recurses into the "deps" folder and starts running Common Test in there as well as in my application directories.当我从顶级目录运行./rebar ct ,它会递归到“deps”文件夹并开始在那里以及我的应用程序目录中运行 Common Test。

Since this increases the build time substantially, and since the dependencies should have passed their tests before being released, I'd like rebar not to do this.由于这会大大增加构建时间,并且由于依赖项在发布之前应该已经通过了测试,我希望 rebar 不要这样做。

How do I get it to only run ct (and eunit ) against my code, ignoring the deps folder?我如何让它只对我的代码运行ct (和eunit ),而忽略deps文件夹?

You can use the skip_deps option:您可以使用skip_deps选项:

rebar ct skip_deps=true

or

rebar eunit skip_deps=true

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

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