首页 > 其他 > 详细

pytest的一些你爱不释手的插件

时间:2018-09-10 17:43:26      阅读:282      评论:0      收藏:0      [点我收藏+]

1. pytest-html

安装:pip install pytest-html # 通过pip安装pytest-html
运行测试文件的时候,命令行加上对应参数即可
比如:pytest test_class.py --html=./report.html, (./report.html表示在当前目录下,创建名称叫report的html文件)
效果大概就是酱紫的
技术分享图片

2. pytest-rerunfailures

安装:pip install pytest-rerunfailures #通过pip安装pytest-rerunfailures
运行测试文件 pytest test_class.py --reruns 5 (失败重跑5次)

3. pytest-ordering

pytest的一些你爱不释手的插件

原文:https://www.cnblogs.com/pingguo-softwaretesting/p/9620121.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!