Firstly, Thank you very much!

I have the other question, why no cover for code line 
"object.isNull(orderIntegreatedDTO)"? is this the reason, too?  it does not 
throw exception. 

在 2019年10月27日星期日 UTC+8上午1:59:56,Evgeny Mandrikov写道:
>
> 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/d36e2609-8056-4b1f-ae46-fcc12bc9c1f9%40googlegroups.com.

Reply via email to