Java Surefire和OpenClover-如果测试失败,生成Clover报告

Java Surefire和OpenClover-如果测试失败,生成Clover报告,java,maven,maven-surefire-plugin,clover,Java,Maven,Maven Surefire Plugin,Clover,我使用的插件是maven surefire插件版本2.20.1和OpenClover插件版本4.2.0 Surefire设置 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version&g

我使用的插件是maven surefire插件版本2.20.1和OpenClover插件版本4.2.0

Surefire设置

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.20.1</version>
        </plugin>
<plugin>
    <groupId>org.openclover</groupId>
    <artifactId>clover-maven-plugin</artifactId>
    <version>4.2.0</version>
</plugin>
为了让clover即使在测试失败的情况下也能生成报告,我需要做些什么

多谢各位
Damien

我通过在maven命令中添加maven--fail-never选项来解决这个问题

更新的命令是

mvn  clean clover:setup test clover:aggregate clover:clover -DskipTests=false -DtestFailureIgnore=true -fail-never

我通过在maven命令中添加maven--fail-never选项来解决这个问题

更新的命令是

mvn  clean clover:setup test clover:aggregate clover:clover -DskipTests=false -DtestFailureIgnore=true -fail-never