You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When --clean-alluredir command line option is specified, it remove all the files from the root level of the alluredir. The problem is, when I copy history folder from already generated html report, which is something that is done if one wants to get historic trend graph in report: https://stackoverflow.com/a/50499775, this history folder is never cleared from report.
What is the expected behavior?
What I would expect is, when this argument is used, to clean whole directory from previous files and folders. I detected that the code for this argument is located in allure-python-commons/src/logger.py, and that fix is as easy as this: https://stackoverflow.com/a/185941.
What is the motivation / use case for changing the behavior?
What I want is to add option in my plugin to specify if I want to get historic trend or not. But with this in complete clean-alluredir option, once I choose not to have history folder in report, it will still be there.
Since I know how to fix this issue easily, I am willing to contribute myself.
The text was updated successfully, but these errors were encountered:
Caballero93
changed the title
clean-alluredir command line argument doesn't removes only files from alluredir root
clean-alluredir command line argument removes only files from alluredir root
Feb 23, 2020
I'm submitting a ...
What is the current behavior?
When --clean-alluredir command line option is specified, it remove all the files from the root level of the alluredir. The problem is, when I copy history folder from already generated html report, which is something that is done if one wants to get historic trend graph in report: https://stackoverflow.com/a/50499775, this history folder is never cleared from report.
What is the expected behavior?
What I would expect is, when this argument is used, to clean whole directory from previous files and folders. I detected that the code for this argument is located in allure-python-commons/src/logger.py, and that fix is as easy as this: https://stackoverflow.com/a/185941.
What is the motivation / use case for changing the behavior?
What I want is to add option in my plugin to specify if I want to get historic trend or not. But with this in complete clean-alluredir option, once I choose not to have history folder in report, it will still be there.
Please tell us about your environment:
Other information
Since I know how to fix this issue easily, I am willing to contribute myself.
The text was updated successfully, but these errors were encountered: