pytest学习和使用15-Pytest用例失败如何重跑?(pytest-rerunfailures的简单使用)

1 简介

  • 用例失败重跑可以使用插件pytest-rerunfailures来实现;
  • pytest-rerunfailures有环境要求:

Python 3.5-3.8, or PyPy3
pytest 5.0或更高版本

  • 查看下自己的版本,如下:
Python 3.7.0 (v3.7.0:1bf9cc5093
posted @ 2022-12-27 11:34  虫无涯  阅读(35)  评论(0)    收藏  举报  来源