您可以在pytest_runtest_logreport此处实现一个钩子conftest.py:
def pytest_runtest_logreport(report):
if report.when == 'call' and report.failed:
# save bug report
Run Code Online (Sandbox Code Playgroud)
有关更多信息,请参阅使用插件和conftest文件进行Woking.
| 归档时间: |
|
| 查看次数: |
821 次 |
| 最近记录: |