allure-python
allure-python copied to clipboard
py.test --alluredir Doesn't delete previous/old config files
I'm submitting a ...
- [x] bug report
- [ ] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Allure version: 2.1.0
- Test framework: [email protected]
- Allure adaptor: [email protected]
Other information
py.test --alluredir "Directory" By default old config files should be deleted which is not happening, old files should be overridden. All the files are pilling over the folder
4c14422b-1957-43d8-8f46-07007b3ce66d-attachment.txt 8af8ed34-b870-4208-adf4-81800f2229b8-attachment.txt 0636eb97-1c48-43cb-a6ab-c8f15948a0f6-attachment.txt f81e5d06-9145-4557-9674-0e4f055b59a1-attachment.txt
Hello @GiriManas I think you want to specify --clean-allure
parser.getgroup("reporting").addoption('--clean-alluredir',
action="store_true",
dest="clean_alluredir",
help="Clean alluredir folder if it exists")
@symonk Thx)