即时测试进度状态的pytest插件
pytest-progress的Python项目详细描述
pytest progress是py.test的插件,它允许 打印测试进度,如通过、失败、跳过的测试数,以及 即时测试失败消息。
要求
要使用pytest progress,您需要以下先决条件:
- python 2.7、3.4或3.5
- Pytest 2.9.0或更新版本
安装
要安装pytest进度:
$ pip install pytest-progress
然后使用以下命令运行测试:
$ py.test --show-progress
如果您想要更详细的输出(每行一个测试),则可以使用verbose选项:
$ py.test --verbose