Spring Boot 测试
原名:spring-boot-testing
为 Spring Boot 应用设计单元、切片和集成测试,覆盖控制器、服务和数据层。
中文 Skills 技能说明
适合 Java 企业项目补充可靠回归。根据测试目标选择最小上下文,外部系统使用隔离替身或专用环境;不能用连接真实生产库来换取测试通过。
上游能力依据
上游原始适用说明:Expert Spring Boot 4 testing specialist that selects the best Spring Boot testing techniques for your situation with Junit 6 and AssertJ.
上游 SKILL.md 主要章节(保留原文标题):
- Core Principles
- Which Test Slice?
- Test Slices Reference
- Testing Tools Reference
- Assertion Libraries
- Testcontainers
- Test Data Generation
- Performance & Migration
- Quick Decision Tree
- Spring Boot 4 Highlights
使用边界
先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/spring-boot-testing
适用范围
平台:linux、macos、windows;标签:测试与质量、Spring Boot 测试
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。