Hello marc, 

Many thanks for your response.

It's more clear for me now!

Best regards,

Le jeudi 29 juin 2023 à 10:37:42 UTC+2, Marc Hoffmann a écrit :

> Hi Marc,
>
> this is a common situation. Take for example the following code:
>
>   if (x > 100) {
>     print(“big”);
>   }
>
> If you test this code with x == 200 you will get 100% line and instruction 
> coverage. But you still miss the branch where the if block is not executed.
>
> If you drill down your coverage report to source level you see the 
> specific lines where branches are missed.
>
> Regards,
> -marc
>
>
> On 28. Jun 2023, at 10:10, Marc Ouédraogo <krycm...@gmail.com> wrote:
>
> Hello everyone, I'm writing to you for information or clarification on the 
> results given by Jacoco. I'm a new Jacoco user and I'm lost.
>
> I've been experimenting with Jacoco and have been able to report Branch 
> coverage, Instruction coverage, Method coverage and Line coverage.
> However, I didn't understand why Branch coverage is low, whereas Line 
> coverage, Instruction coverage and even Method coverage are often close to 
> 100%.
>
> As an example, I'm sending you this image showing a summary table of the 
> results.
>
>
> I used Evosuite to generate the test cases.
>
> <Screenshot 2023-06-28 at 10.06.19.png>
> BRcov = Branch Coverage
>
> IScov = Instruction coverage
> MTcov = Method coverage
> LIcov = Line coverage
>
> Best regards,
>
> -- 
> 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+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/325b2090-8844-4787-8ee5-c8c73137b84en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/325b2090-8844-4787-8ee5-c8c73137b84en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> <Screenshot 2023-06-28 at 10.06.19.png>
>
>
>

-- 
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/2c5a1900-7c84-4240-9f98-22316bd41e81n%40googlegroups.com.

Reply via email to