[erlang-questions] erlrt and eunit

Richard Carlsson <>
Sat Oct 7 23:14:27 CEST 2006


Yanni Caouette wrote:
> Then I tried to compile a module. No problem.
> 2> c(mytest).
> {ok,mytest}
> 
> When running the test, I was encountered with this error.
> 3> mytest:test().
> =ERROR REPORT==== 7-Oct-2006::16:30:24 ===
> {undef,[{test,test,[]},{erl_eval,do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]}
> 
> It looked as if the function mytest:test() is not auto exported by
> eunit. Any idea?

Something is odd with that report: it says that "test:test()" is
undefined, but you called "mytest:test()". Also, I don't know what
version of eunit that you get if you use erlrt, so it's a bit hard to
know what could be wrong.

	/Richard



More information about the erlang-questions mailing list