https://github.com/zhangboyi/maven_demo/tree/test
I have met the following conditions: The JaCoCo Ant tasks require - Ant 1.7.0 or higher and - Java 1.5 or higher (for both, the Ant runner and the test executor). Looking forward to your reply. thanks. 在2020年10月29日星期四 UTC+8 下午4:08:18<Boyi Zhang> 写道: > yes,I know. This way you can output the correct result. > but, I do it this way for ”ant task“, resulting in a coverage of 0. > build.xml is in > https://github.com/zhangboyi/maven_demo/blob/master/src/main/resources/build.xml > . > > > 在2020年10月9日星期五 UTC+8 下午9:38:52<Evgeny Mandrikov> 写道: > >> 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/2c16e179-84b9-41ed-969b-7c9e687293edn%40googlegroups.com.
