; ;
摘要: pytest 生成报告,需要提前安装插件 pip install pytest-html 使用方式: 在运行时使用--html=report.html (report就是生成html的文件名) eg:pytest test_rundemo.py --html=reportdemo.html 测试案例 阅读全文
posted @ 2020-03-17 22:18 做梦的人- 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: pytest有几种运行方式 1.全量方式运行 pytest 测试py文件 2.部分方法运行 pytest test_mod.py::test_func 3.运行时显示详细日志 pytest test_mod.py::test_func -v -s 案例展示 全量方式运行 def test_demo1 阅读全文
posted @ 2020-03-17 22:07 做梦的人- 阅读(1945) 评论(0) 推荐(0) 编辑