i'am using the allure-reporter with the wdio framework and in the Allure-results folder i get 490 file for each run and after a number of run it start generating false results and it's normal since the Allure-results folder contain about 75000 file i use the following version : "@wdio/allure-reporter": "^5.13.2"
someone has an idea about how to force it to erase the previous results at every new run ?
I am using WDIO with cucumber framework along with allure reporting. I got the same issue.
I used an external npm package called "clean-dir" to achieve this.
I installed cleandir as dev dependencies and added the following to the "package.json" file:
So whenever i trigger the test, it first cleans the existing results of allure.
I am not sure whether this is the best way but it simply solves my requirement.
P.S: I am posting the same answer because that question was with TestNG and not with WDIO.