GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — clean-alluredir command line argument removes only files from alluredir root · Issue #470 · allure-framework/allure-python

clean-alluredir command line argument removes only files from alluredir root #470

New issue
Copy link
New issue
Copy link
Closed
#732
Closed
clean-alluredir command line argument removes only files from alluredir root#470
#732
Copy link
Labels
theme:pytesttype:enhancement

Description

@Caballero93
Caballero93
opened on Feb 23, 2020
Issue body actions

I'm submitting a ...

  • feature request

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:

  • Allure version: 2.13.0
  • Test framework: [email protected]
  • Allure adaptor: [email protected]

Other information

Since I know how to fix this issue easily, I am willing to contribute myself.

Activity

  1. 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[/+] on Feb 23, 2020
  2. delatrie
    added
    theme:pytest
    type:enhancement
    on Jan 23, 2023
  3. delatrie
    closed this as completedin #732on Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    theme:pytesttype:enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.