[英]Trend not appearing within Allure report on Codefresh
信息- 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>
然后在我們的 pipeline.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
報告(這是在運行多個構建之后)
錯誤
這可能不起作用的唯一指示是此錯誤消息,它作為 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
}
]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.