[erlang-questions] common_test test case documentation

Loïc Hoguin <>
Tue Apr 29 21:16:25 CEST 2014


Great news, thanks!

On 04/29/2014 09:15 PM, Peter Andersson wrote:
>
> Hi Loïc,
>
> Bug found. Will have it fixed shortly.
>
> Best regards,
> Peter
>
> Ericsson AB, Erlang/OTP
>
> Loïc Hoguin wrote:
>> Hm that's weird. Using ct:comment/1,2 works but doesn't always print the
>> comment in the comment column when the test fails. Any idea why? It
>> doesn't seem related to how long the test takes. It is however related
>> to running tests in parallel. I'm guessing the test_server:comment/1
>> function being async has to do with it. Would be awesome if it could be
>> synchronous. :-)
>>
>> On 03/20/2014 04:24 PM, Siri Hansen wrote:
>>> There is also ct:comment/1,2 which could be called at the beginning of
>>> the test case. Note that subsequent calls to this function, or the
>>> return value {comment,""}, will overwrite previous calls. And it does
>>> not necessarily look very nice when a test fails...
>>> /siri
>>>
>>>
>>> 2014-03-11 19:45 GMT+01:00 Loïc Hoguin <
>>> <mailto:>>:
>>>
>>>      And of course I made a mistake in one example. Sorry.
>>>
>>>
>>>      On 03/11/2014 07:43 PM, Loïc Hoguin wrote:
>>>
>>>              testcase3() -> ?TEST_HERE, {comment, "docs here"}.
>>>
>>>
>>>      The above should read:
>>>
>>>           testcase3(Config) -> ?TEST_HERE, {comment, "docs here"}.
>>>
>>>
>>>      --
>>>      Loïc Hoguin
>>>      http://ninenines.eu
>>>      _________________________________________________
>>>      erlang-questions mailing list
>>>       <mailto:>
>>>      http://erlang.org/mailman/__listinfo/erlang-questions
>>>      <http://erlang.org/mailman/listinfo/erlang-questions>
>>>
>>>
>>
>>
>

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list