插件文档
此插件可用的目标:
| 目标 | 报告? | 描述 |
|---|---|---|
| surefire-report:failsafe-report-only | 是的 | 以 html 格式创建格式良好的故障安全测试报告。这个目标不运行测试,它只构建报告。请参阅 https://issues.apache.org/jira/browse/SUREFIRE-257 |
| 肯定报告:帮助 | 不 | 显示有关 maven-surefire-report-plugin 的帮助信息。 调用 mvn surefire-report:help -Ddetail=true
-Dgoal=<goal-name>以显示参数详细信息。 |
| 万无一失的报告:报告 | 是的 | 以 html 格式创建格式良好的 Surefire 测试报告。 |
| 肯定报告:仅报告 | 是的 | 以 html 格式创建格式良好的 Surefire 测试报告。这个目标不运行测试,它只构建报告。这是https://issues.apache.org/jira/browse/SUREFIRE-257的解决方法 |
系统要求
以下指定了运行此 Maven 插件的最低要求:
| maven | 3.0 |
| JDK | 1.7 |
| 记忆 | 没有最低要求。 |
| 磁盘空间 | 没有最低要求。 |
用法
您应该在项目的插件配置中指定版本:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
...
</plugins>
</build>
...
<!-- To use the report goals in your POM or parent POM -->
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
...
</plugins>
</reporting>
...
</project>
有关详细信息,请参阅“配置插件指南”


