如何解决开放式三叶草测试工具警告

问题描述

我正在为我的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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...