| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- [pytest]
- # pytest 配置文件
- # 测试文件匹配模式
- python_files = test_*.py *_test.py
- python_classes = Test*
- python_functions = test_*
- # 标记定义
- markers =
- asyncio: 标记异步测试
- integration: 标记集成测试(需要实际API服务)
- slow: 标记慢速测试
- unit: 标记��元测试
- # 输出选项
- addopts =
- -v
- --strict-markers
- --tb=short
- --disable-warnings
- # 异步测试配置
- asyncio_mode = auto
- # 日志配置
- log_cli = false
- log_cli_level = INFO
- log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
- log_cli_date_format = %Y-%m-%d %H:%M:%S
- # 覆盖率配置
- [coverage:run]
- source = core.construction_review.component.reviewers
- omit =
- */tests/*
- */test_*.py
- [coverage:report]
- precision = 2
- show_missing = True
- skip_covered = False
|