当我使用 python-xdist 库并行启动测试时,会在报告门户中创建多个启动。
如何将我的测试与单次启动并行?
我的测试:
def test_RP():
assert True == True
def test_RP2():
assert True == False
当我运行测试时:
py.test -n 2 -v -s tests/home/login_test.py --rp-launch LoginGmailParallel
在 RP 中创建了 3 个不同的启动(1 为空):