update pytest-xdist

This commit is contained in:
yanchunhuo 2019-12-04 13:33:26 +08:00
parent 99e1a24a82
commit 5ad030d398
4 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
pytest==5.0.0
pytest-xdist==1.23.2
pytest-xdist==1.30.0
allure-pytest==2.7.0
pytest-rerunfailures==8.0
assertpy==0.13

View File

@ -29,14 +29,14 @@ if __name__=='__main__':
pytest_execute_params.append('-k')
pytest_execute_params.append(args.keyword)
# 判断是否输出日志
if args.capture:
if "1"==args.capture:
pytest_execute_params.append('-s')
# 判断是否失败重跑
if args.reruns:
if not "0"==args.reruns:
pytest_execute_params.append('--reruns')
pytest_execute_params.append(args.reruns)
# 判断是否只运行上一次失败的用例
if args.lf:
if "1"==args.lf:
pytest_execute_params.append('--lf')
pytest_execute_params.append(dir)

View File

@ -72,14 +72,14 @@ if __name__=='__main__':
pytest_execute_params.append('-k')
pytest_execute_params.append(args.keyword)
# 判断是否输出日志
if args.capture:
if "1"==args.capture:
pytest_execute_params.append('-s')
# 判断是否失败重跑
if args.reruns:
if not "0"==args.reruns:
pytest_execute_params.append('--reruns')
pytest_execute_params.append(args.reruns)
# 判断是否只运行上一次失败的用例
if args.lf:
if "1"==args.lf:
pytest_execute_params.append('--lf')
pytest_execute_params.append(dir)
exit_code = pytest.main(pytest_execute_params)

View File

@ -56,14 +56,14 @@ if __name__=='__main__':
pytest_execute_params.append('-k')
pytest_execute_params.append(args.keyword)
# 判断是否输出日志
if args.capture:
if "1"==args.capture:
pytest_execute_params.append('-s')
# 判断是否失败重跑
if args.reruns:
if not "0"==args.reruns:
pytest_execute_params.append('--reruns')
pytest_execute_params.append(args.reruns)
# 判断是否只运行上一次失败的用例
if args.lf:
if "1"==args.lf:
pytest_execute_params.append('--lf')
pytest_execute_params.append(dir)
tmp_exit_code = pytest.main(pytest_execute_params)