Unable to delete old generated allure files from all-results and allure report
Describe the bug Generated allure report files doesnot get clean when used clean command
To Reproduce Steps to reproduce the behavior:
- I used this command to install npm package of allure report npm i allure-playwright
- Made changes in the playwright.config.ts file as reporter: "allure-playwright";
- Ran the command to execute tests and generate file to all-results folder npx playwright test --reporter=line,allure-playwright
- 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
I am having exactly the same problem with --clean. Any response on this one?
The issue relates to allure-framework/allure2. Have just created an issue and linked it here.
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.
Simply delete the allure-results directory before the tests run.