Files
hms/crates/erp-server/tests/integration.rs
iven 3b38562533
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled
test(ai): 添加 erp-ai 集成测试 — 14 个测试覆盖 3 个 service
- PromptService: 创建/查询/列表筛选/激活版本切换/回滚/跨租户隔离/未找到错误 (7)
- UsageService: 日志记录/概览/按类型聚合/跨租户隔离 (4)
- AnalysisService: 完成分析/失败分析/缓存查找/列表筛选 (3)
- 使用 MockProvider 替代真实 AI 调用
2026-05-01 00:57:16 +08:00

49 lines
1.8 KiB
Rust

#[path = "integration/test_db.rs"]
mod test_db;
#[path = "integration/test_fixture.rs"]
mod test_fixture;
#[path = "integration/auth_tests.rs"]
mod auth_tests;
#[path = "integration/plugin_tests.rs"]
mod plugin_tests;
#[path = "integration/workflow_tests.rs"]
mod workflow_tests;
#[path = "integration/health_patient_tests.rs"]
mod health_patient_tests;
#[path = "integration/health_appointment_tests.rs"]
mod health_appointment_tests;
#[path = "integration/health_pii_encryption_tests.rs"]
mod health_pii_encryption_tests;
#[path = "integration/health_points_tests.rs"]
mod health_points_tests;
#[path = "integration/health_dialysis_tests.rs"]
mod health_dialysis_tests;
#[path = "integration/health_alert_tests.rs"]
mod health_alert_tests;
#[path = "integration/health_device_reading_tests.rs"]
mod health_device_reading_tests;
#[path = "integration/health_follow_up_tests.rs"]
mod health_follow_up_tests;
#[path = "integration/health_consultation_tests.rs"]
mod health_consultation_tests;
#[path = "integration/health_data_tests.rs"]
mod health_data_tests;
#[path = "integration/health_article_tests.rs"]
mod health_article_tests;
#[path = "integration/health_doctor_tests.rs"]
mod health_doctor_tests;
#[path = "integration/health_diagnosis_tests.rs"]
mod health_diagnosis_tests;
#[path = "integration/health_consent_tests.rs"]
mod health_consent_tests;
#[path = "integration/health_medication_tests.rs"]
mod health_medication_tests;
#[path = "integration/health_dialysis_prescription_tests.rs"]
mod health_dialysis_prescription_tests;
#[path = "integration/health_follow_up_template_tests.rs"]
mod health_follow_up_template_tests;
#[path = "integration/health_daily_monitoring_tests.rs"]
mod health_daily_monitoring_tests;
#[path = "integration/ai_prompt_tests.rs"]
mod ai_prompt_tests;