gpt4 book ai didi

erlang - 运行rebar ct时如何跳过deps?

转载 作者:行者123 更新时间:2023-12-04 04:33:13 24 4
gpt4 key购买 nike

我有一个 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

关于erlang - 运行rebar ct时如何跳过deps?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20216084/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com