[pytest] # 命令行规则,空格分隔 # -m "L0 or L1" # --alluredir ./temp addopts = -v --report=report.html --title=测试报告 --tester=测试员 --desc=报告描述信息 --template=1 # 测试用例路径 testpaths = testModule # 模块名的规则 python_files = test*.py # 类名的规则 python_classes = Test* # 方法名的规格 python_functions = test* # pytest执行顺序默认从上到下,需要改变顺序进行order参数控制 #用例分类 markers = L0:冒烟用例 L1:基础用例 L2:扩展用例 log_cli = true log_cli_level = WARN log_cli_date_format = %Y-%m-%d-%H-%M-%S log_cli_format = %(asctime)s - %(filename)s - %(module)s - %(funcName)s - %(lineno)d - %(levelname)s - %(message)s