diff --git a/zhyy/test_case/run_tests.py b/zhyy/test_case/run_tests.py index 564f0ca..d5572ee 100644 --- a/zhyy/test_case/run_tests.py +++ b/zhyy/test_case/run_tests.py @@ -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)