allure-framework / allure-js

Allure integrations for JavaScript test frameworks
https://allurereport.org/
Apache License 2.0
225 stars 122 forks source link

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

Closed nirmalprojects1988 closed 6 months ago

nirmalprojects1988 commented 11 months ago

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
NikolaQAautomation commented 10 months ago

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

epszaw commented 9 months ago

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

goshal-prasad commented 9 months ago

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.

baev commented 6 months ago

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