1[pytest] 2# 命令行规则,空格分隔 3# -m "L0 or L1" 4# --alluredir ./temp 5addopts = -v --report=report.html --title=测试报告 --tester=测试员 --desc=报告描述信息 --template=1 -m "L0 or L1 or L2" 6# 测试用例路径 7testpaths = testModule 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 ST:稳定性用例 22 23log_cli = true 24log_cli_level = WARN 25log_cli_date_format = %Y-%m-%d-%H-%M-%S 26log_cli_format = [%(asctime)s %(name)s %(funcName)s %(lineno)d %(levelname)s][%(process)d][%(thread)d][%(threadName)s]%(message)s