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

Unable to delete old generated allure files from all-results and allure report

Open nirmalprojects1988 opened this issue 2 years ago • 3 comments

Describe the bug Generated allure report files doesnot get clean when used clean command

To Reproduce Steps to reproduce the behavior:

  1. I used this command to install npm package of allure report npm i allure-playwright
  2. Made changes in the playwright.config.ts file as reporter: "allure-playwright";
  3. Ran the command to execute tests and generate file to all-results folder npx playwright test --reporter=line,allure-playwright
  4. Ran the command to generate report file allure generate my-allure-results -o allure-report --clean

Actual behaviour On each run i.e allure generate my-allure-results -o allure-report --clean , i see allure-results folder keeps growing with each new test run, even though I'm using the --clean command.

Expected behaviour Upon running the clean command allure-results folder should be cleaned

Screenshots as you can see on each run files are getting added to the folder,The count what i marked is just show the allure-results files count image

nirmalprojects1988 avatar Nov 27 '23 09:11 nirmalprojects1988

I am having exactly the same problem with --clean. Any response on this one?

NikolaQAautomation avatar Nov 30 '23 15:11 NikolaQAautomation

The issue relates to allure-framework/allure2. Have just created an issue and linked it here.

epszaw avatar Dec 28 '23 14:12 epszaw

Issue happens when we edit the test like changing the title etc, deleting the existing files from allure-results before execution will solve the issue.

goshal-prasad avatar Dec 28 '23 15:12 goshal-prasad

Simply delete the allure-results directory before the tests run.

baev avatar Apr 10 '24 12:04 baev