【问题标题】:How to tell rebar3 to run tests in dependencies如何告诉 rebar3 在依赖项中运行测试
【发布时间】:2018-03-03 13:57:55
【问题描述】:

我希望我的 rebar3 应用程序能够测试自身及其所有依赖项。 rebar3有可能吗? 我创建了一个简单的“测试”插件,它尝试在项目中的所有应用程序及其依赖项上执行rebar_prv_eunit:do/1,但它不起作用。

这是它的代码https://github.com/kubaodias/rebar3-test-plugin

【问题讨论】:

  • rebar3 eunit 有什么问题?
  • 它只测试当前的应用程序。我还想从 rebar.config 测试它的所有依赖项。

标签: erlang rebar3


【解决方案1】:

ls -d */ | xargs -I {} bash -c "cd {} ; rebar3 eunit; cd -"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-23
    • 1970-01-01
    • 2018-03-06
    • 2015-04-09
    • 1970-01-01
    • 2019-09-02
    • 2017-06-04
    相关资源
    最近更新 更多