修改报告地址

This commit is contained in:
qiaoxinjiu
2026-03-23 19:37:59 +08:00
parent c156201f04
commit cc6733a8fb

View File

@@ -20,10 +20,10 @@ TEST_CASE_DIR = 'zhyy/test_case/TestCase'
case_dir = os.path.join(project_root,TEST_CASE_DIR)
# 报告目录
REPORT_DIR = os.path.join(os.path.dirname(current_file_path), 'reports')
ALLURE_RESULTS_DIR = os.path.join(REPORT_DIR, 'allure-results')
ALLURE_REPORT_DIR = os.path.join(REPORT_DIR, 'allure-report')
ALLURE_RESULTS_DIR = os.path.join(project_root, 'allure-results')
ALLURE_REPORT_DIR = os.path.join(project_root, 'allure-report')
print(ALLURE_REPORT_DIR)
def ensure_dirs():
"""确保报告目录存在"""
os.makedirs(ALLURE_RESULTS_DIR, exist_ok=True)