https://www.jacoco.org/jacoco/trunk/doc/faq.html

Source code lines with exceptions show no coverage. Why?

JaCoCo determines code execution with so called probes. Probes are inserted 
into the control flow at certain positions. Code is considered as executed 
when a subsequent probe has been executed. In case of exceptions such a 
sequence of instructions is aborted somewhere in the middle and the 
corresponding line of source code is not marked as covered.

On Saturday, October 26, 2019 at 6:05:40 PM UTC+2, Aaron zhang wrote:
>
> left is jacoco, right is idea coverage.
>
>
> we can look at it, result is not different, actually, we can see that they 
> should be covered.
>
>
> more information, code line "orderOwnerValidator
> .validate(orderIntegratedDTO);"  throws exceptions by executing test case.
>
>
> recondition:
>
> 1.  jacoco agent version 0.8.5, and 0.7.3
>
> 2. org.jacoco.report version 0.8.3
>
> 3. tcp server mode
>
>  
>
> [image: 屏幕快照 2019-10-26 下午11.53.55.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/4295100c-e619-4982-bc0a-c3cd294d73aa%40googlegroups.com.

Reply via email to