【发布时间】: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