【问题标题】:Trend not appearing within Allure report on CodefreshCodefresh 的 Allure 报告中未出现趋势
【发布时间】:2022-01-28 17:44:34
【问题描述】:

信息 - https://codefresh.io/docs/docs/testing/test-reports/

  • allure-testng v2.17.2
  • aspectjweaver v1.9.6

在遵循上述文档后,我目前在 CodeFresh 上的构建中生成了测试报告。这些当前正在按预期生成,但是趋势/历史记录未出现在报告中。在报告中看到这些信息很重要,这样我们就可以了解正在运行的测试状态的历史视图。

在我们的测试框架中,我们使用以下依赖项来生成我们的 Allure 报告 (https://docs.qameta.io/allure/#_testng)

    <dependency>
        <groupId>io.qameta.allure</groupId>
        <artifactId>allure-testng</artifactId>
        <version>2.17.2</version>
    </dependency>

然后在我们的管道 .yml 文件中,我们使用 codefresh/cf-docker-test-reporting 图像和步骤来创建 Allure 测试报告。

 generate_report:
   stage: generate_report
   title: Generate test reporting
   image: codefresh/cf-docker-test-reporting
   working_directory: '${{CF_VOLUME_PATH}}/'
   environment:
    - BUCKET_NAME=our-bucket-name
    - CF_STORAGE_INTEGRATION=our-integration-name

报告(这是在运行多个构建之后)

Report without trend

错误

这可能不起作用的唯一指示是此错误消息,它作为 Codefresh 中 generate_report 阶段的一部分打印出来。

  Start add allure history to test results
  Error during adding allure history to test report, cause: Access Denied <-
  Report successfully generated to allure-report
  Report generation is finished successfully

【问题讨论】:

    标签: continuous-integration testng report allure codefresh


    【解决方案1】:

    事实证明,我们的问题归结于我们配置 S3 存储桶的方式。我们必须稍微更改 S3 存储桶的权限,以便它能够对存储桶执行操作(例如列出其中的所有对象 - Codefresh 无法做到这就是为什么历史/趋势没有正在生成。这是我们为 S3 存储桶部署的权限。

    Statement = [
      {
        Action = [
          "s3:*"
        ]
        Effect   = "Allow"
        Resource = "${aws_s3_bucket.our-integration-name.arn}/*"
      },
      {
        Action = [
          "s3:*"
        ]
        Effect   = "Allow"
        Resource = aws_s3_bucket.our-integration-name.arn
      }
    ]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多