feat: 完善dulizhan项目测试代码
This commit is contained in:
@@ -46,8 +46,8 @@ def run_pytest(args_list):
|
||||
if is_jenkins and 'WORKSPACE' in env:
|
||||
# Jenkins环境下使用绝对路径
|
||||
global ALLURE_RESULTS_DIR, ALLURE_REPORT_DIR
|
||||
ALLURE_RESULTS_DIR = os.path.join(env['WORKSPACE'], 'zhyy', 'test_case', 'reports', 'allure-results')
|
||||
ALLURE_REPORT_DIR = os.path.join(env['WORKSPACE'], 'zhyy', 'test_case', 'reports', 'allure-report')
|
||||
ALLURE_RESULTS_DIR = os.path.join(env['WORKSPACE'], 'dulizhan', 'test_case', 'reports', 'allure-results')
|
||||
ALLURE_REPORT_DIR = os.path.join(env['WORKSPACE'], 'dulizhan', 'test_case', 'reports', 'allure-report')
|
||||
ensure_dirs()
|
||||
|
||||
cmd = ['python', '-m', 'pytest'] + args_list
|
||||
|
||||
Reference in New Issue
Block a user