[erlang-questions] eunit, fixtures and processes
Sun May 11 22:14:35 CEST 2008
Patrick Roemer wrote:
> The eunit documentation suggests "local" mode (instead of the "spawn"
> default) to run setup/teardown and tests in the same process. However,
> in my setup this only works for the first test case, subsequent ones
> still seem to run in dedicated processes.
You found a bug! I've just fixed it; do try again with the latest
version at https://svn.process-one.net/contribs/trunk/eunit - I hope
that is all it takes. (The bug affected both foreach and foreachx.)
I have also removed the old undocumented function 'eunit:debug(X)'.
Instead, use the macro ?debugVal(X) or any of the other debug macros
(found at the end of eunit.hrl) - they will eventually be documented.
Thanks for the report!
"Having users is like optimization: the wise course is to delay it."
-- Paul Graham
More information about the erlang-questions