java-integration-test SKILL.md skillA
This file is byte-identical to the first copy the registry indexed, one of 3 indexed copies. Same content hash, so the same checks give both the same grade.
java-integration-test from baixuanzhu/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add baixuanzhu/skills/java-integration-test@v1.3.0Pins 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-B/versionB/SKILL.md- Versions 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
mdr add baixuanzhu/skills/java-integration-test@sha256:f67bdba008fb7416The 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.
[](https://markdownregistry.com/a/art_rw422pcprfqgq2xn)
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.
Audit of the latest version
- 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
baixuanzhu/skills · 3 stars · license MIT · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rw422pcprfqgq2xn GET https://markdownregistry.com/api/v1/resolve?ref=baixuanzhu/skills/java-integration-test GET https://markdownregistry.com/api/v1/blob/f67bdba008fb7416b034ed50fd9536e915df87a6d26eeeb717dfa54d2757cc4b
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
Every file in baixuanzhu/skills