前提:
pip3 install pytest-xdist
命令行参数:
pytest -n num (num是进程数)
pytest -n auto(auto是默认的cpu核数)
配置文件中使用:
addopts = -q -n auto --reruns 1 --reruns-delay 3 --alluredir ./report
前提:
pip3 install pytest-xdist
命令行参数:
pytest -n num (num是进程数)
pytest -n auto(auto是默认的cpu核数)
配置文件中使用:
addopts = -q -n auto --reruns 1 --reruns-delay 3 --alluredir ./report