使用pytest-xdist包
pip install pytest-xdist
使用方法: -n 并行数量 *.py 例: pytest -n 5 test.py 并行运行五条用例
问题:
配合使用@pytest.mark.parametrize
使用pytest-xdist包
pip install pytest-xdist
使用方法: -n 并行数量 *.py 例: pytest -n 5 test.py 并行运行五条用例
问题:
配合使用@pytest.mark.parametrize