Open e-shubin opened 10 years ago
It works though if I put a sleep before redbug:stop/0 call.
seems there's something screwy in how eunit handles file:fwrite/3. I'll discuss this with the eunit people. Since the below works, this is hopefully not a showstopper for you.
t_0_test() ->
Filename = "redbug.txt",
{_, _} = redbug:start("lists:sort->stack", [{print_file, Filename}]),
[1,2,3] = lists:sort([3,2,1]),
redbug:stop(),
?assertEqual(ok,ok).
A simple eunit test case causes an error in redbug
I works good if eunit is not used. I would love to see redbug working in eunit tests.