随笔分类 -  python pytest

摘要:[pytest] # 命令行参数,用空格分隔 addopts = -v -n=2 # 配置测试用例所在文件夹 testpaths = ./pytest_1 # 配置需要执行的模块文件名称 python_files = test*.py # 配置需要执行的测试类名 python_classes = T 阅读全文
posted @ 2021-10-12 18:16 **绵绵羊** 阅读(346) 评论(0) 推荐(0) 编辑
摘要:1. -s 表示输出调试信息,包括print打印信息 D:\demo>pytest -s ./pytest_1 test session starts platform win32 -- Python 3.7.4, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 roo 阅读全文
posted @ 2021-07-02 09:31 **绵绵羊** 阅读(1539) 评论(0) 推荐(0) 编辑
摘要:maxfail=num 表示用例失败总数等于num 时停止运行 注意点: maxfail=num中间不要存在空格 阅读全文
posted @ 2020-04-11 17:07 **绵绵羊** 阅读(634) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示