allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

py.test --alluredir Doesn't delete previous/old config files

Open GiriManas opened this issue 7 years ago • 3 comments

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:

Other information

GiriManas avatar Aug 17 '19 15:08 GiriManas

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

GiriManas avatar Aug 17 '19 15:08 GiriManas

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 avatar Aug 22 '19 21:08 symonk

@symonk Thx)

sseliverstov avatar Aug 26 '19 12:08 sseliverstov