14 Jul 2008, 23:36
Alain_o_dea_pragsmall

Alain O'Dea (41 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?

16 Jul 2008, 01:00
Alain_o_dea_pragsmall

Alain O'Dea (41 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.

15 Jul 2008, 00:27
Photo_78_pragsmall

Kevin Smith (22 posts)

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

04 Sep 2008, 00:52
Small_pragsmall

Steinar GĂ­slason (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.

  You must be logged in to comment