allure-framework / allure-framework/allure-python

Robot Framework Allure listener generates a huge amount of files

未关闭
#814 6 条评论 10 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
815
派生
260
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
When I use the Allure listener with Robot-Framework, a huge amount of files are generated.
For example : around 3000 json & html files (13MB !) are generated for a couple of basics Robot-Framework tests.
The final Allure report generated from the same tests also contains around 1500 files (6MB).

This situation has a limited impact for some basics tests, but, in case of my real tests campaign, more than 800.000 files are generated, for more than 1GB size ! This lead to memory issues or disk spaces failures.

**To Reproduce**
Steps to reproduce the behavior:
1. Start a basic Robot-Framework test campaign with the Allure listener ( --listener "allure_robotframework;allure-export"
2. Check the number of files in the "allure-export" folder and its size.
3. Generate the Allure report from the previous export files.
4. Check the number of files in the report folder, and its size .

**Expected behavior**
The listener output and Allure report should be optimized to reduce number of files generated and their size.

**Environment (please complete the following information):**

Allure version: 2.12.1
Test framework: robotframework@3.0.2
Allure adaptor: allure-robotframework@2.8.6

贡献指南

打开贡献指南

调研方向

首先,使用所提到的 Robot Framework listener command 重现该问题,并检查 allure-export 和 generated report 文件夹,比较文件数量和大小。payload 没有列出源文件或测试,因此从这次重现入手,追踪 listener 和 report-generation 的入口点;完成的标准是文件数量显著减少、输出更小,同时不丢失报告内容。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。