allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Robot Framework Allure listener generates a huge amount of files

Open chache35 opened this issue 5 years ago • 4 comments

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: [email protected] Allure adaptor: [email protected]

chache35 avatar Jan 21 '20 13:01 chache35

+1

apallier avatar Jan 21 '20 14:01 apallier

+1

yvespelle avatar Feb 04 '21 08:02 yvespelle

My workaround for this is following:

  1. delete old allure results folder (in you example above its "allure-export" folder)
  2. run robot tests with listener normally
  3. to show trends in allure report, copy history folder under results folder (in you example it should go under "allure-export" folder)
  4. generate allure report with --clean option

inurmi avatar Sep 23 '21 05:09 inurmi

any update about this bug?

bucherarnold avatar Apr 28 '24 20:04 bucherarnold