1[pytest] 2# 命令行规则,空格分隔 3# -m "L0 or L1" 4# --alluredir ./temp 5addopts = -vs --html=./reports/report.html --self-contained-html 6# 测试用例路径 7testpaths = ../py 8# 模块名的规则 9python_files = test*.py 10# 类名的规则 11python_classes = Test* 12# 方法名的规格 13python_functions = test* 14# pytest执行顺序默认从上到下,需要改变顺序进行order参数控制 15 16#用例分类 17markers = 18 L0:冒烟用例 19 L1:基础用例 20 L2:扩展用例 21 22