1 parent 200b717 commit a0f6dd6Copy full SHA for a0f6dd6
2 files changed
allure-pytest-bdd/src/plugin.py
@@ -27,7 +27,7 @@ def clean_up():
27
28
def pytest_configure(config):
29
report_dir = config.option.allure_report_dir
30
- clean = config.option.clean_alluredir
+ clean = False if config.option.collectonly else config.option.clean_alluredir
31
32
if report_dir:
33
report_dir = os.path.abspath(report_dir)
allure-pytest/src/plugin.py
@@ -151,7 +151,7 @@ def pytest_addhooks(pluginmanager):
151
152
153
154
155
156
test_helper = AllureTestHelper(config)
157
allure_commons.plugin_manager.register(test_helper)
0 commit comments