diff --git a/allure-pytest-bdd/src/plugin.py b/allure-pytest-bdd/src/plugin.py index a5620264..5d6b8310 100644 --- a/allure-pytest-bdd/src/plugin.py +++ b/allure-pytest-bdd/src/plugin.py @@ -27,7 +27,7 @@ def clean_up(): def pytest_configure(config): report_dir = config.option.allure_report_dir - clean = config.option.clean_alluredir + clean = False if config.option.collectonly else config.option.clean_alluredir if report_dir: report_dir = os.path.abspath(report_dir) diff --git a/allure-pytest/src/plugin.py b/allure-pytest/src/plugin.py index 52a8eaff..2771722f 100644 --- a/allure-pytest/src/plugin.py +++ b/allure-pytest/src/plugin.py @@ -151,7 +151,7 @@ def pytest_addhooks(pluginmanager): def pytest_configure(config): report_dir = config.option.allure_report_dir - clean = config.option.clean_alluredir + clean = False if config.option.collectonly else config.option.clean_alluredir test_helper = AllureTestHelper(config) allure_commons.plugin_manager.register(test_helper)