Cucumber在Bamboo中报告插件

时间:2017-02-02 00:01:12

标签: java selenium jenkins cucumber bamboo

我想在Bamboo中配置黄瓜报告工具。它有在Jenkins中执行此操作的程序。

https://github.com/damianszczepanik/cucumber-reporting

我知道市场上有很多插件可供使用。但我不需要它们。有没有人成功配置了Bamboo的damian黄瓜报告插件。

由于

2 个答案:

答案 0 :(得分:2)

由于此插件生成HTML报告,您可以在Bamboo中创建工件以将该报告包含为构建工件。然后,您将在工件列表中看到它并通过Web浏览器查看它。它不会内嵌到Bamboo UI中,但您仍可以查看测试结果

答案 1 :(得分:2)

以下是我在Bamboo中配置masterthought黄瓜报告的方法

  1. 在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>
    
  2. 现在转到竹子并选择配置计划,然后点击阶段标签中的作业
  3. 现在您正在使用任务。点击工件标签
  4. 单击“创建定义”按钮并输入以下详细信息。

    • 姓名:CukeReports
    • 位置:target / cucumber-maven-reports
    • 复制模式:**/*.*(这将递归复制所有文件夹和子文件夹和文件)
  5. 现在运行您的构建,您可以在构建摘要的工件标签中访问这些报告。希望这会有所帮助。