For step 2 you can just reset without actually requesting a dump. See 
documentation of „dump“ task.

> On 12. Jul 2019, at 13:07, Huafeng Lu <[email protected]> wrote:
> 
> The approach in my post dumps twice to get the result, so by "better" I meant 
> if we can dump only once.
> The approach you stated is essentially the same as mine, so I guess the 
> answer is 'нет' - we already got what we need.
> Thanks.
> --huafeng
> 
>> On Fri, Jul 12, 2019 at 5:45 PM Evgeny Mandrikov <[email protected]> wrote:
>> 
>> 
>>> On Friday, July 12, 2019 at 10:55:16 AM UTC+2, [email protected] wrote:
>>> On Friday, July 12, 2019 at 1:11:51 PM UTC+8, Evgeny Mandrikov wrote: 
>>> > See documentation of "dump" Ant task at 
>>> > https://www.jacoco.org/jacoco/trunk/doc/ant.html 
>>> > set "reset" parameter to "true" to reset data on agent side 
>>> > and 
>>> > do not append it to same "destfile" or set parameter "append" to "false" 
>>> > to overwrite file. 
>>> 
>>> Thanks Evgeny! 
>>> 'reset' will reset data after dumping... so, in order to get the clean 
>>> execution result, I guess I should dump (to reset), then launch my test, 
>>> then dump again (to really get the execution result).
>> 
>> 1. start your application
>> 2. request dump with reset - you'll get execution data of startup
>> 3. do your first test
>> 4. request dump with reset - you'll get execution data of your first test
>> 5. do your second test
>> 6. request dump with reset - you'll get execution data of your second test
>> 7. etc
>>  
>>> Is there a better approach? 
>> 
>> This does exactly what you asked/wanted to do. So better in what? by which 
>> criteria? What does not satisfy you in the above approach?
>> 
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "JaCoCo and EclEmma Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jacoco/tD8zf9v0qv0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jacoco/0dfb2254-4363-4f75-8cc0-affc96f666bf%40googlegroups.com.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/CALMmMoXvzmbst02NDzWUuGZKas8YS-NTY6GaBU4W_Wf1eX7d7Q%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/47B508CC-970F-43D4-832B-925EC258CC60%40mountainminds.com.

Reply via email to