Alain_o_dea_small Alain O'Dea 35 posts

My Erlang distribution did not include EUnit. I am using MacPorts Erlang/OTP R12B-2. Is EUnit part of Erlang/OTP or is it a separate install?

 
Alain_o_dea_small Alain O'Dea 35 posts

I solved this by going into Terminal and typing the following:
svn co http://svn.process-one.net/contribs/trunk/eunit eunit

cd eunit
make
cd ..
sudo mv eunit /opt/local/lib/erlang/lib/eunit-2.0b1

After this EUnit was available for me to continue Episode 5. Dropping a library folder — like eunit — containing an ebin into erlang/lib appears to function like dropping a JAR in a Java ext directory.

 
Photo_78_small Kevin Smith 20 posts

EUnit is also included in the source bundle for this episode just in case you don’t feel like checking out the project.

 
Small_small Steinar Gísl... 1 post

Has anyone had trouble using Eunit on Windows?
Tried the source in the bundle for windows, it didn’t work for me.
I also downloaded it using the path above (using cygwin) and build the eunit from scratch and compiled the source (in cygwin), but I keep getting this error

/test_fizzbuzz.erl:none: error in parse transform ‘eunit_autoexport’: {undef, [{eunit_autoexport, parse_transform, .... etc.

when running c(test_fizzbuzz) in the erlang shell.

The error appeaers when I add the line:
-include_lib(“eunit/include/eunit.hrl”).

I am not suburb at reading erlang error messages, so if anyone can point me to the right direction it would be appreciated.

4 posts, 3 voices