You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue/openspec/changes/archive/2026-06-28-add-unit-tests/proposal.md

428 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

P1 优化:完善单元测试

目标

为 RuoYi-Vue 后端核心 Service 层添加单元测试,提升代码质量和可维护性。

范围

  • 系统管理模块 Serviceuser、role、menu
  • book-system 业务模块 Service
  • 工具类单元测试

技术栈

  • JUnit 5
  • Mockito
  • Spring Boot Test

验收标准

  • 核心 Service 测试覆盖率 > 70%
  • 所有测试用例通过
  • 集成到 CI/CD 流程