[pytest] # 配置文件 testpaths = tests python_files = test_*.py python_classes = Test* python_functions = test_* addopts = --tb=short -v markers = smoke: 冒烟测试,快速验证核心功能 regression: 回归测试,完整功能验证 performance: 性能测试,页面加载和响应时间 responsive: 响应式测试,不同屏幕尺寸 cross_browser: 跨浏览器测试 form: 表单相关测试 navigation: 导航测试 interactive: 用户交互测试 [tool:pytest] filterwarnings = ignore::DeprecationWarning ignore::PendingDeprecationWarning ignore::pytest.PytestUnraisableExceptionWarning