[pytest] # pytest 配置文件 testpaths = tests python_files = test_*.py python_classes = Test* python_functions = test_* # 测试标记 markers = p0: P0 优先级测试(阻断性功能,必须全部通过) p1: P1 优先级测试(核心功能,应全部通过) p2: P2 优先级测试(体验增强功能) e2e: 端到端流程测试 auth: 登录鉴权与权限测试 order: 订单相关测试 cancel: 订单取消流程测试 logistics: 物流与司机任务测试 customer: 客户管理测试 product: 产品管理测试 supplier: 供应商管理测试 reminder: 提醒中心测试 report: 报表统计测试 config: 配置管理测试 audit: 审计日志测试 system: 系统管理测试 file: 文件管理测试 ai: AI 识别测试 pricing: 定价引擎测试 # 输出格式 addopts = -v --tb=short --strict-markers # 日志配置 log_cli = true log_cli_level = INFO log_cli_format = %(asctime)s [%(name)s] %(levelname)s: %(message)s