java - jacoco 统计junit单元测试对项目代码的测试覆盖率为0?
大家讲道理
大家讲道理 2017-04-18 10:45:25
0
1
1103
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
迷茫

I encountered the same problem. After searching for a long time, I found out that it was a version problem. My jdk is 1.8 and the plug-in uses 0.7.2. . . . . I saw you asking a question, so I registered to answer it. I hope it’s useful. Here’s how I solved it: Change the configuration version in the pom file to the latest one

            <groupId>org.jacoco</groupId>    
            <artifactId>jacoco-maven-plugin</artifactId>    
            <version>0.7.9</version>  
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template