1个练习引发的系列学习之pytest生成测试报告 (三)

发布时间:2020-06-06 05:20:30 作者:ilanqing
来源:网络 阅读:1795

一、背景介绍
pytest提供了生成报告的功能。
使用pytest --help可以进行查看。
1个练习引发的系列学习之pytest生成测试报告 (三)

二、 生成测试报告

--tb=style,traceback print mode (auto/long/short/line/native/no).
--tb=no
1个练习引发的系列学习之pytest生成测试报告 (三)

--full-trace don't cut any tracebacks (default is to cut).
1个练习引发的系列学习之pytest生成测试报告 (三)

--color=color color terminal output (yes/no/auto).
--color=no
1个练习引发的系列学习之pytest生成测试报告 (三)

--junit-xml=path , create junit-xml style report file at given path.
1个练习引发的系列学习之pytest生成测试报告 (三)

--html=path , create html report file at given path.
1个练习引发的系列学习之pytest生成测试报告 (三)

推荐阅读:
  1. Python基础学习之 pytest
  2. shell脚本练习之代码

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

pytest report st

上一篇:Wireshark 网络抓包工具

下一篇:rsync+inotify实现数据实时同步备份

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》