[erlang-questions] It seems that eunit tests run twice, someone happens to encounter this ???

Roger Lipscombe roger@REDACTED
Wed Feb 11 13:22:20 CET 2015


If you have:

all_test_() -> [a_test, b_test].
a_test() -> ?assert(true).
b_test() -> ?assert(true).

Then they get run twice, once as part of the fixture, and again
because they've got names ending in '_test'.

Is this what you're seeing?

On 11 February 2015 at 06:16, 断舍离 <459673409@REDACTED> wrote:
> Hi,
>    It seems that the eunit tests have been run twice.
>    The code comes from my company's project,so i can not paste all concerned
> code  here,and i just want to know  that does someone once has such problems
> before?Just tell me how to fix the bug when you meet the similar
> problems,maybe i can get some guides from your suituation.
>   Thanks!:)
> I search the google,and find some:
>
> http://lists.basho.com/pipermail/rebar_lists.basho.com/2010-July/000144.html‍
>
> But i still can not figur out why,Please help me
>    Sorry for my poor English
> Best regard!
>> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list