【插件】重复执行 pytest-repeat
安装
pip3 install pytest-repeat
用法
1.命令行
pytest --count num
pytest --count 3
2.装饰器
@pytest.mark.repeat(num) #num运行次数
@pytest.mark.repeat(5)#执行结果如下:
安装
pip3 install pytest-repeat
用法
1.命令行
pytest --count num
pytest --count 3
2.装饰器
@pytest.mark.repeat(num) #num运行次数
@pytest.mark.repeat(5)#执行结果如下: