安装pytest-sugar可以实时看到测试的进度
安装命令:
pip install pytest-sugar
运行命令后,发现抛异常,查询资料
查看pytest-sugar官方文档:https://pypi.org/project/pytest-sugar/
发现pytest-sugar需要有其他依赖(共3个):
Python 2.7, 3.4 or newer
pytest2.9.0 or newer
pytest-xdist 1.14 or above if you want the progress bar to work while running tests in parallel
继续安装,依然抛异常,改成使用豆瓣源头安装:

