如何在 Github Actions 上发布(提供)吸引力报告

问题描述 投票:0回答:1

我在 Github Actions 上运行自动化测试用例,出于报告目的,我使用 Allure。由于

./gradlew allureReport
命令,我在 ./build/reports/allure-report 目录中获取文件,对我来说主要问题是 Github Actions 无法
serve
此测试结果。

完全可以将生成的文件下载到

./build/reports/allure-report
目录,但我需要我的测试报告是交互式的并且可以通过链接访问(例如:https://allure-framework.github.io/allure-demo/5/ )。也许有人知道如何在 Github Actions 上提供 Allure Report 的最佳实践?

testing automation reporting allure test-reporting
1个回答
0
投票

Allure (https://allurereport.org/docs/integrations-github/) 提议的集成是通过 GitHub Pages 发布报告。但是,这会迫使您提交实际生成的报告,除非您添加自定义清理解决方案,否则可能会使您的存储库太大。

我更喜欢将 allure 报告文件夹的内容上传到云存储桶并将其托管为静态网站。例如,请参阅this S3 教程。

© www.soinside.com 2019 - 2024. All rights reserved.