【问题标题】:Cucumber reports plugin in BambooBamboo 中的 Cucumber 报告插件
【发布时间】:2017-02-02 00:01:12
【问题描述】:

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

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

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

谢谢

【问题讨论】:

    标签: java selenium jenkins cucumber bamboo


    【解决方案1】:

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

    【讨论】:

    • 我会赞成这个想法。我将回答完整的解决方案,以便对其他人有所帮助:-)
    【解决方案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. 现在您正在执行任务。点击Artifacts标签
    4. 单击创建定义按钮并输入以下详细信息。

      • 名称:CukeReports
      • 位置:target/cucumber-maven-reports
      • 复制模式:**/*.*(这将递归复制所有文件夹和子文件夹和文件)

    现在运行您的构建,您可以在构建摘要的工件标签中访问这些报告。希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-17
      • 2018-08-25
      • 1970-01-01
      • 2019-05-15
      相关资源
      最近更新 更多