Hi,

JaCoCo does not support what you want to do. We have no relationships between 
probes and test cases. As you already wrote the only way is to dump&reset 
execution data after every test case.

> I want to add some extra info on the probe, such as the case id, is that OK?


What do you mean by this? Create your own version of JaCoCo? Sure, give it a 
try! If you succeed please send us a ping. We did not implement this so far due 
to the following reasons:

1) JaCoCo is totally framework agnostic. We have no idea what the boundaries of 
a test case are.
2) We want to keep the runtime memory footprint very small, so we store probes 
in simple boolean[] arrays
3) Also we want to keep the runtime overhead for probes small.

Regards,
-marc



> On 8. Aug 2020, at 18:07, winter <qiaomei....@gmail.com> wrote:
> 
> I am using the jacoco on the project A, then I do some test on the project A.
> for example, I ran 10 test cases, I want to collect the coverage data by 
> every case, it means I need 10 coverage data, but the 10 test cases were 
> executed in a short time, so I cannot dump and generate report after the case 
> was executed. I want to add some extra info on the probe, such as the case 
> id, is that OK?
> 
> -- 
> 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 jacoco+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/72b4bc41-447f-4d80-a0a1-8c9ed215a6abo%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/72b4bc41-447f-4d80-a0a1-8c9ed215a6abo%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/4AE3D8FF-C720-455C-94AE-8930F552FD3F%40mountainminds.com.

Reply via email to