小编Cle*_*lem的帖子

Jenkins中的故障安全html报告

我有一些与故障安全maven插件一起运行的集成测试(使用Selenium).Failsafe仅生成XML报告文件.

1)我想生成HTML报告

2)我想在Jenkins中有一个关于html报告的链接

对于1)我安装了"maven-surefire-report-plugin"来使用failafe-report-only目标.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-report-plugin</artifactId>
  <version>2.13</version>
  <executions>
    <execution>
      <phase>post-integration-test</phase>
      <goals>
        <goal>failsafe-report-only</goal>
      </goals>
    </execution>
  </executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)

但在标准输出中,似乎没有生成任何内容:

[INFO] 
[INFO] >>> maven-surefire-report-plugin:2.13:failsafe-report-only (default) @ BaseContrats >>>
[INFO] 
[INFO] <<< maven-surefire-report-plugin:2.13:failsafe-report-only (default) @ BaseContrats <<<
[INFO] 
[INFO] --- maven-surefire-report-plugin:2.13:failsafe-report-only (default) @ BaseContrats ---
Run Code Online (Sandbox Code Playgroud)

在我的failsafe-reports目录中,我只有XML报告文件,但没有HTML报告文件.

它是为故障安全生成html报告的好插件吗?

对于2),我安装了Jenkins插件"Selenium HTML报告",并添加了帖子构建操作"Publish Selenium HTML report",并为"Selenium tests results location"参数配置了"target/failsafe-reports"值,但没有在Jenkins界面中显示(当然因为我的html报告文件没有生成...).

这两点可以帮助我吗?

html selenium maven jenkins maven-failsafe-plugin

7
推荐指数
1
解决办法
6174
查看次数

标签 统计

html ×1

jenkins ×1

maven ×1

maven-failsafe-plugin ×1

selenium ×1