Files
张翔 1e3dc11d59 refactor(test): 重构测试套件结构并优化测试配置
feat(test-suite): 新增测试套件模块,包含API测试客户端和测试配置
fix(api): 修复数据库实体和仓库的删除操作返回值
style(api): 统一数据库表名和字段命名
perf(api): 添加缓存注解提升配置查询性能
test(api): 添加H2测试数据库配置支持
chore: 清理旧的测试文件和脚本
2026-04-01 20:57:24 +08:00

63 lines
1.8 KiB
INI

[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
pythonpath = .
addopts =
-v
--strict-markers
--tb=short
--cov=.
--cov-report=html
--cov-report=term-missing
--alluredir=allure-results
markers =
unit: 单元测试
auth: 认证相关测试
user: 用户管理测试
role: 角色管理测试
permission: 权限管理测试
menu: 菜单管理测试
websocket: WebSocket实时通信测试
e2e: 端到端业务流程测试
comprehensive: 综合E2E测试
example: 示例测试
performance: 性能测试
exception: 异常场景测试
dictionary: 字典管理测试
dict: 字典管理测试
config: 系统配置测试
audit: 审计日志测试
notice: 通知公告测试
file: 文件管理测试
smoke: 冒烟测试
regression: 回归测试
slow: 慢速测试
playwright: Playwright浏览器自动化测试
distributed: 分布式事务测试
recovery: 数据恢复测试
migration: 系统迁移测试
disaster: 灾难恢复测试
network: 网络恢复测试
database: 数据库故障测试
degradation: 服务降级测试
timeout: 超时测试
concurrency: 并发测试
stability: 稳定性测试
boundary: 边界条件测试
critical: 关键业务流程测试
uat: 用户验收测试
acceptance: 验收测试
user_lifecycle: 用户生命周期测试
role_workflow: 角色工作流测试
config_workflow: 配置工作流测试
data_dict_workflow: 数据字典工作流测试
audit_workflow: 审计工作流测试
comprehensive_workflow: 综合工作流测试
security: 安全测试
user_experience: 用户体验测试
business_scenario: 业务场景测试
integration: 集成测试
asyncio_mode = auto