And also for your information
JaCoCo version 0.7.5 that you use ( 
https://github.com/zhangboyi/maven_demo/blob/494ee90cacd693c3a4a15d323bf709241d1da801/pom.xml#L11
 
)
is 5 years old
and does not support latest Java versions.
Please use latest JaCoCo version.


On Friday, October 9, 2020 at 3:20:24 PM UTC+2 Evgeny Mandrikov wrote:

> After
>
> git clone https://github.com/zhangboyi/maven_demo.git
> cd maven_demo
>
> and checkout of the latest as of now commit
>
> git checkout 494ee90cacd693c3a4a15d323bf709241d1da801
>
> and uncommenting jacoco-maven-plugin in pom.xml
>
> execution of
>
> mvn verify
>
> produces definitely not zeros as you can see below
>
>
> [image: maven_demo.png]
>
> On Friday, October 9, 2020 at 5:05:40 AM UTC+2 [email protected] wrote:
>
>>
>> https://github.com/zhangboyi/maven_demo.git
>> 在2020年10月9日星期五 UTC+8 上午11:02:33<Boyi Zhang> 写道:
>>
>>> Jacoco analyzed the unit test classes as if they were normal classes, 
>>> resulting in a coverage of 0.(jacoco把单元测试类也当做普通类来分析,导致覆盖率为0。)
>>
>>

-- 
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/e8535957-1b1e-4cdc-bb5d-51770792070bn%40googlegroups.com.

Reply via email to