1

I have been trying to use IntellijIdea for erlang development. I created a project from existing sours using rebar. But when I try to run test cases I get following error. This is what I see on console

/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}}

How can I get rid of this issue?

  • Judging from the error message, module `couch_mrview_all_docs_tests` is in a directory that's not in your load path. Perhaps you should try searching under your CouchDB directory for file `couch_mrview_all_docs_tests.beam` and assuming you find it, make sure the directory it's in is supplied with a `-pa` option to your `erl` command. – Steve Vinoski Apr 09 '15 at 14:58
  • Thank you. Path for the .beam files was the problem. – Buddhika Jayawardhana Apr 10 '15 at 22:52

1 Answers1

0

The Erlang module is not loaded. Use the -pa option to fix this.

2240
  • 1,547
  • 2
  • 12
  • 30