[erlang-bugs] Eunit, test generators and code:purge()

Magnus Henoch <>
Thu May 30 15:48:45 CEST 2013

Andrew Thompson <> writes:

> On Thu, May 30, 2013 at 11:30:28AM +0100, Magnus Henoch wrote:
>> I've had the same problem, and somehow discovered that it works if the
>> test generator function in A has a title.
> Interesting idea. Unfortunately, the test I have is using a setup
> fixture (with named tests), so your workaround doesn't seem to apply
> here.

I found that the same workaround worked for setup fixtures:

my_test_() ->
    {"this title saves the test", setup, Setup, Cleanup, Tests}.


More information about the erlang-bugs mailing list