本文介绍了关于Codefresh的Allure报告中未显示趋势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
信息-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
推荐答案
原来我们的问题在于我们配置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
}
]
这篇关于关于Codefresh的Allure报告中未显示趋势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论