SonarQube Java 单元测试覆盖率为零解决方法
SonarQube Java 大约 330 字现象
在IDEA
中使用Run with Coverage
能显示覆盖率。
但SonarQube
中一直显示覆盖率为0
。
解决方法
对于Maven
构建的项目,添加jacoco
插件即可。
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
阅读 600 · 发布于 2023-07-04
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Prometheus+Grafana+windows_exporter 监控 Windows 系统阅读 2181
-
macOS locate 命令报错解决方法阅读 223
-
JDK 1.8 HashMap 源码分析阅读 1440
-
Linux zgrep,zcat,zless,zmore 等 zutil 包命令阅读 3863
-
Windows PowerShell 设置默认开启管理员权限阅读 1982
-
面试题:OSI 模型和 TCP/I P模型各有几层阅读 3491
-
微信小程序基于 wxParse 实现代码高亮阅读 4589
-
IDEA 版 Postman HTTP Client 测试 API 接口阅读 1592
-
npm 安装 Angular 脚手架阅读 1613
-
软考-系统架构设计师:系统性能设计-性能指标阅读 1847