随笔分类 - python pytest
摘要:[pytest] # 命令行参数,用空格分隔 addopts = -v -n=2 # 配置测试用例所在文件夹 testpaths = ./pytest_1 # 配置需要执行的模块文件名称 python_files = test*.py # 配置需要执行的测试类名 python_classes = T
阅读全文
摘要: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
阅读全文
摘要:maxfail=num 表示用例失败总数等于num 时停止运行 注意点: maxfail=num中间不要存在空格
阅读全文