如何解决声纳测试覆盖率 - 排除模块
我有一个 maven 多模块项目,如下所示。
test
pom.xml
test-shared/pom.xml
test-svc/pom.xml
test-admin/pom.xml
我想从测试覆盖范围中排除某些文件。
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>https://sonar.test.com</sonar.host.url>
<sonar.exclusions>
**/*DTO.java,**/*Constants.java,**/*Properties.java
</sonar.exclusions>
</properties>
</profile>
父 pom.xml 文件中的上述代码有效。
现在,我想忽略 test-shared/ 模块下的所有类。
我试过了,
**/test-shared/**/*.*
到父 pom 中的排除列表,它不起作用。
从测试覆盖率中排除模块(test-shared/)的正确方法是什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。