【发布时间】:2017-02-02 00:01:12
【问题描述】:
我想在 Bamboo 中配置黄瓜报告工具。它有在 Jenkins 中执行此操作的程序。
https://github.com/damianszczepanik/cucumber-reporting
我知道市场上有很多插件可用。但我不需要它们。有没有人在 Bamboo 中成功配置过 damian 的黄瓜报告插件。
谢谢
【问题讨论】:
标签: java selenium jenkins cucumber bamboo
我想在 Bamboo 中配置黄瓜报告工具。它有在 Jenkins 中执行此操作的程序。
https://github.com/damianszczepanik/cucumber-reporting
我知道市场上有很多插件可用。但我不需要它们。有没有人在 Bamboo 中成功配置过 damian 的黄瓜报告插件。
谢谢
【问题讨论】:
标签: java selenium jenkins cucumber bamboo
由于此插件生成 HTML 报告,您可以在 Bamboo 中创建工件以将该报告包含为构建工件。然后您将在工件列表中看到它并通过 Web 浏览器查看它。它不会内联到 Bamboo UI,但您仍然可以查看测试结果
【讨论】:
这是我在 Bamboo 中配置 masterthought 黄瓜报告的方式
在pom文件中添加如下插件代码
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>execution</id>
<phase>test</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/cucumber-maven-reports</outputDirectory>
<cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
</configuration>
</execution>
</executions>
</plugin>
单击创建定义按钮并输入以下详细信息。
**/*.*(这将递归复制所有文件夹和子文件夹和文件)现在运行您的构建,您可以在构建摘要的工件标签中访问这些报告。希望这会有所帮助。
【讨论】: