问题描述
我正在为我的Spring Boot项目使用openclover Coverage工具,并且覆盖范围工作正常。但是,当我运行测试覆盖率报告时,我收到来自openclover的警告消息。如何解决这些警告消息。
[WARNING] has test file source dir = true
[WARNING] test file source dir = /home/**/src/test/java
[WARNING] test file source dir = /home/**/target/generated-test-sources/test-annotations
[WARNING] No Clover database found,skipping report generation
来自pom.xml的插件详细信息:
<plugin>
<groupId>org.openclover</groupId>
<artifactId>clover-maven-plugin</artifactId>
<version>4.4.1</version>
<configuration>
<generateHtml>true</generateHtml>
<includes>
<include>com/insight/xxx/**/*</include>
</includes>
<excludes>
<!-- Exclude main class -->
<exclude>**/Test.java</exclude>
</excludes>
<targetPercentage>75%</targetPercentage>
<methodContexts>
<private-constructor>(.* )?private +[a-zA-Z0-9_$]+ *\( *\).*</private-constructor>
</methodContexts>
<contextFilters>private-constructor</contextFilters>
</configuration>
<executions>
<execution>
<id>main2</id>
<phase>verify</phase>
<goals>
<goal>instrument</goal>
<goal>check</goal>
<goal>clover</goal>
</goals>
</execution>
</executions>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)