[pytest] # Pytest 配置文件 # 测试发现 testpaths = tests # 输出选项 addopts = -v --strict-markers --tb=short --cov-report=term-missing --cov-report=html # 标记定义 markers = unit: 单元测试 integration: 集成测试 e2e: 端到端测试 slow: 慢速测试 # 覆盖率配置 [coverage:run] source = mcp_server omit = */tests/* */__init__.py [coverage:report] precision = 2 show_missing = true skip_covered = false