java-integration-test SKILL.md skill A
java-integration-test from baixuanzhu/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
Install it, pinned
mdr add baixuanzhu/skills/java-integration-test@v1.3.0Copy
Pins v1.3.0 in mdr.lock. Pin the fingerprint instead .
Audit grade A, 17 of 17 checks passed Kind SKILL.md skill Repository baixuanzhu/skills Path eval/java-test/darwin-validation-v2.0.0/snapshots/blind/integration-A/version1/SKILL.mdVersions recorded 1 Latest version v1.3.0, committed Oct 4, 2026 Size 15,542 bytes Repository stars 3 License MIT
Java/Spring Boot 集成测试 / 冒烟测试 / API 级 E2E 助手——在编写、评审、补全 集成测试时使用本技能,无论用户是否提到具体框架(集成测试 / 接口测试 / E2E / 冒烟测试 / @SpringBootTest / MockMvc / REST Assured / Testcontainers / WireMock)。 核心:消灭仿真测试——用可断言、可重复、可版本控制的测试替代 curl 调接口 + 肉眼判断;需要真实数据库 / Redis / Kafka 时默认 Testcontainers(不取决于项目 是否已引 H2)。覆盖:跨层协作(Controller→Service→Repository)、真实依赖容器、 进程内 HTTP 断言、外部依赖 stub、测试隔离、Actuator 冒烟。 次级触发信号:用 curl 或手动启动应用调接口"测试"、@SpringBootTest 全量上下文 测单层 Controller、测试间数据互相污染、@Transactional 回滚失效、测试基础设施 待搭建(生产 PostgreSQL / MySQL…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says # Java 集成测试
面向 Java/Spring Boot 的**集成测试 / 冒烟测试 / API 级 E2E** 助手。本技能提供从切片测试到全量集成的完整工具链,每条规则含「✗ 错误做法 → ✓ 正确做法」——核心是消灭 curl 仿真测试(无断言 / 不可重复 / 不进版本控制,详见铁律 1 + `references/01`)。
## 三条铁律
1. **curl 不是测试**:测试必须有结构化断言(HTTP status + response body + jsonPath),而非"看起来返回正常"。curl 是调试工具,不是测试工具——它没有断言、不可重复、不进版本控制、无隔离。
2. **选对层次**:切片测试(`@WebMvcTest`/`@DataJpaTest`)秒级启动,够用就不用全量 `@SpringBootTest`。单层逻辑用 `@Mock`+`@InjectMocks`(→ java-unit-test),跨层协作用集成测试——不越界、不滥用全量上下文。
3. **隔离优先**:测试间数据不污染。`@Transactional` 回滚(注意失效场景)、Testcontainers 重置、`@Sql` 清理——一个测试的副作用不能影响另一个。
## 快速入门
| 你想做的 | 看这份 | 读多少 |
|---|---|---|
| 不知道用哪种测试 / curl 该不该用 | `references/01` 测试层次 + curl 反模式 | 各前 40 行 |
| 写 @SpringBootTest / MockMvc / WebTestClient | `references/02` | 通读 |
| 只测单层 Controller 或 Repository(切片) | `references/03` | 通读 |
| 用真实数据库 / Redis / Kafka 测 | `references/04` | 通读 |
| 写 API 断言(REST Assured given/when/then) | `references/05` | 通读 |
| 测试隔离 / @Transactional 失效 / WireMock | `references/06` | 通读 |
| 冒烟测试 / 多接口串联 E2E | `references/07` | 通读 |
| 跑测试烧 token / 反复全量 / 输出太多 | `references/08` | 通读 |
> `01` 根文件(选层次前必读);`02`-`05` 工具链落地;`06` 隔离陷阱;`07` 冒烟与 E2E;`08` 执行效率。
## 第 0 步:探测项目与场景(激活时先执行)
… Read the whole file at its exact version.
How to install
The exact contents, by fingerprint
mdr add baixuanzhu/skills/java-integration-test@sha256:f67bdba008fb7416Copy
The line at the top of this page pins the label v1.3.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
Badge
[](https://markdownregistry.com/a/art_3ncp3i6womx5pnrx) Copy 2 badge image fetches in 30 days. What the badge shows .
Versions The registry has recorded 1 version of this file, committed on Oct 4, 2026.
version committed commit size audit v1.3.0 latest 2026-10-04
b24ce00
15,542 B A
view
Audit of the latest version A 17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
pass: Frontmatter block present pass: Frontmatter declares a name pass: Frontmatter declares a description pass: Size between 200 bytes and 200 KB (15542 bytes) pass: No zero-width or bidi control characters pass: No instruction hidden inside an HTML comment pass: No link to an exfiltration or paste host pass: No credential-shaped string pass: No instruction to send local credentials anywhere pass: No text hidden with inline styles pass: No prompt-injection phrasing pass: No curl or wget piped into a shell pass: No recursive delete of root, home or parent pass: No instruction to read or print local credentials pass: No base64 blob over 200 characters pass: No link to a raw IP address pass: No script tag
Source
API GET https://markdownregistry.com/api/v1/artifacts/art_3ncp3i6womx5pnrx
GET https://markdownregistry.com/api/v1/resolve?ref=baixuanzhu/skills/java-integration-test
GET https://markdownregistry.com/api/v1/blob/f67bdba008fb7416b034ed50fd9536e915df87a6d26eeeb717dfa54d2757cc4bCopy
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what .
More from baixuanzhu/skills AGENTS.md AGENTS.md file
baixuanzhu/skills · AGENTS.md
git:20261027.6a2cc9a · audit A · 3 stars
CLAUDE.md CLAUDE.md file
baixuanzhu/skills · CLAUDE.md
git:20260822.070edce · audit B · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.4.0/snapshots/v3.3.0/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.3.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.4.0/snapshots/v3.4.0/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.4.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.4.0/snapshots/version1/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.3.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.4.0/snapshots/version2/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.4.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.4.0/snapshots/versionA/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.4.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.4.0/snapshots/versionB/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.3.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.5.0/snapshots/v3.4.1/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.4.1 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.5.0/snapshots/v3.5.0/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.5.0 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.5.0/snapshots/version1/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.4.1 · audit A · 3 stars
java-coding-guide-pro SKILL.md skill
baixuanzhu/skills · eval/java-coding-guide-pro/darwin-validation-v3.5.0/snapshots/version2/SKILL.md · Java 编码规范与避坑助手。在编写、修改、重构或审查任何 Java / Spring Boot 代码时使用本技能—— 无论用户是否提到编码规范或具体工具库(Java coding / code review / refactoring…
v3.5.0 · audit A · 3 stars
Every file in baixuanzhu/skills
Other files named java-integration-test java-integration-test SKILL.md skill
baixuanzhu/skills · skills/java-integration-test/SKILL.md · Java/Spring Boot 集成测试助手——测试自管真实依赖:真实关系库 / 缓存 / 消息队列 (PostgreSQL、MySQL、Redis、Kafka 等)、迁移可重放、事务传播真实效果、冒烟、 API 级…
v2.3.0 · audit A · 3 stars
java-integration-test SKILL.md skill
baixuanzhu/skills · eval/java-test/darwin-validation-v2.0.0/snapshots/blind/integration-A/version2/SKILL.md · Java/Spring Boot 重型测试助手——测试自管真实依赖:Testcontainers 起真实 PostgreSQL / MySQL / Redis / Kafka、Flyway/Liquibase 迁移可重放、事务传播…
v2.0.0 · audit A · 3 stars
java-integration-test SKILL.md skill
baixuanzhu/skills · eval/java-test/darwin-validation-v2.0.0/snapshots/blind/integration-B/versionA/SKILL.md · Java/Spring Boot 重型测试助手——测试自管真实依赖:Testcontainers 起真实 PostgreSQL / MySQL / Redis / Kafka、Flyway/Liquibase 迁移可重放、事务传播…
v2.0.0 · audit A · 3 stars
java-integration-test SKILL.md skill
baixuanzhu/skills · eval/java-test/darwin-validation-v2.0.0/snapshots/v1-online-integration/SKILL.md · Java/Spring Boot 集成测试 / 冒烟测试 / API 级 E2E 助手——在编写、评审、补全 集成测试时使用本技能,无论用户是否提到具体框架(集成测试 / 接口测试 / E2E / 冒烟测试 /…
v1.3.0 · audit A · 3 stars
java-integration-test SKILL.md skill
baixuanzhu/skills · eval/java-test/darwin-validation-v2.0.0/snapshots/v2-slim-integration/SKILL.md · Java/Spring Boot 重型测试助手——测试自管真实依赖:Testcontainers 起真实 PostgreSQL / MySQL / Redis / Kafka、Flyway/Liquibase 迁移可重放、事务传播…
v2.0.0 · audit A · 3 stars
java-integration-test SKILL.md skill
baixuanzhu/skills · eval/java-test/darwin-validation-v2.0.0/snapshots/blind/integration-B/versionB/SKILL.md · Java/Spring Boot 集成测试 / 冒烟测试 / API 级 E2E 助手——在编写、评审、补全 集成测试时使用本技能,无论用户是否提到具体框架(集成测试 / 接口测试 / E2E / 冒烟测试 /…
v1.3.0 · audit A · 3 stars
java-integration-test SKILL.md skill
baixuanzhu/skills · plugins/java-test/skills/java-integration-test/SKILL.md · Java/Spring Boot 集成测试助手——测试自管真实依赖:真实关系库 / 缓存 / 消息队列 (PostgreSQL、MySQL、Redis、Kafka 等)、迁移可重放、事务传播真实效果、冒烟、 API 级…
v2.3.0 · audit A · 3 stars
Browse by kind , by grade A , or by owner .