【问题标题】:eunit Test suite was cancelled erroreunit 测试套件被取消错误
【发布时间】:2015-06-13 10:19:10
【问题描述】:

我一直在尝试使用 IntellijIdea 进行 erlang 开发。我使用钢筋从现有的酸创建了一个项目。但是当我尝试运行测试用例时,出现以下错误。这是我在控制台上看到的

/usr/lib/erlang/bin/erl -pa /tmp/eunit_teamcity9.tmp -pa /mnt/36024D48024D0E75/Users/Buddhika/Documents/Programming/2015/Apache/CouchDB/couch-mrview -eval "eunit:test([couch_mrview_all_docs_tests], [{report, {eunit_teamcity,[]}}, {no_tty, true}])." -s init stop -noshell
Testing started at 4:57 PM ...
Test suite was cancelled. Reason: {abort,
                               {module_not_found,
                                couch_mrview_all_docs_tests}}

我怎样才能摆脱这个问题?

【问题讨论】:

  • 从报错信息来看,模块couch_mrview_all_docs_tests所在的目录不在你的加载路径中。也许你应该尝试在你的 CouchDB 目录下搜索文件 couch_mrview_all_docs_tests.beam 并假设你找到它,确保它所在的目录为你的 erl 命令提供了一个 -pa 选项。
  • 谢谢。 .beam 文件的路径是问题所在。

标签: intellij-idea erlang rebar eunit


【解决方案1】:

Erlang module is not loaded。使用 -pa option 解决此问题。

【讨论】:

    猜你喜欢
    • 2012-04-06
    • 2016-04-12
    • 2013-08-04
    • 2017-02-23
    • 2018-10-26
    • 2016-06-03
    • 1970-01-01
    • 2012-06-17
    • 2012-02-28
    相关资源
    最近更新 更多