java - 在 Maven 阶段使用 JaCoCo 的最佳方式是什么?
问题描述
在 Maven 阶段使用 JaCoCo 的最佳方式是什么?我的意思是我应该选择哪个阶段在我的 ci 管道中运行 JaCoCo?Test
相或verify
?两种使用方式有什么区别?我的 POM 文件中有三个执行部分。
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<outputDirectory>target/jacoco-report</outputDirectory>
</configuration>
</execution>
<execution>
<id>check</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
而且我不明白我应该如何为每个执行部分选择阶段。
解决方案
推荐阅读
- python - 当我将它与 pyAutoGui 结合使用时如何刷新 OpenCV 窗口
- node.js - 如何使用 node js 和 mongodb 实现 joi 验证器
- android - 连接重置后的领域 PermissionManager.getPermissions() 错误
- php - PHP CURL 错误:数据返回 NULL 值
- php - 如何将 json 转换为 php 数组并仅从 json 中提取特定值
- javascript - 从 observable 返回值以查看问题
- javascript - 将 json 推送到数组并将其取回以使用它的问题
- c# - 从字节数组中打开 Interop.Excel 中的工作簿
- hive - 如何为 ODBC 连接配置 hive-site.xml
- javascript - top = $this.css("top") 返回一个对象与元素值