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

Magnus Henoch magnus@REDACTED
Thu May 30 15:48:45 CEST 2013


Andrew Thompson <andrew@REDACTED> 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}.

/m



More information about the erlang-bugs mailing list