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.

Install it, pinned
mdr add baixuanzhu/skills/java-integration-test@v2.0.0

Pins v2.0.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/v2-slim-integration/SKILL.md
Versions recorded
1
Latest version
v2.0.0, committed Oct 4, 2026
Size
18,811 bytes
Repository stars
3
License
MIT

Java/Spring Boot 重型测试助手——测试自管真实依赖:Testcontainers 起真实 PostgreSQL / MySQL / Redis / Kafka、Flyway/Liquibase 迁移可重放、事务传播 真实效果、冒烟测试、API 级 E2E、WireMock 隔离外部调用、契约切片层 (@WebMvcTest / @JsonTest / @RestClientTest)。仅当需求明确需要重型 / 真实环境测试时使用本技能:用户明示("补集成测试 / 需求冻结 / 准备发版") → 直接开始;仅能推断出需要 → 先询问"是否开始写重型测试",确认后动手; 无信号 → 不写,新功能测试 → java-unit-test(纯单测)。核心:消灭仿真测试——可断言、可重复、可版本控制,替代 curl 调接口 + 肉眼判断;断言真实行为的测试默认 Testcontainers 真实容器 (不用 H2 替代)。分级:契约切片层(无真实依赖)与真实依赖层(容器); 业务分支矩阵永远铺纯单测(→ java-unit-test),容器用例每特性 1~3 条; 集成测试类名…

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 重型测试(集成 / 冒烟 / E2E)

本技能管理**测试自管依赖**的重型测试——Testcontainers、迁移可重放、真实事务传播、冒烟、E2E、外部依赖 WireMock 隔离,以及功能稳定后补齐的契约切片层。与开发期测试的分界沿**依赖轴**:开发期测试连"内存或本地已运行环境"(→ java-unit-test);本技能的测试自己拉起并管理真实依赖,CI 无预置环境也可重复跑。核心仍是消灭 curl 仿真测试(无断言 / 不可重复 / 不进版本控制,详见铁律 1 + `references/01`)。每条规则含「✗ 错误做法 → ✓ 正确做法」。

## 激活协议(最优先——未激活不写一个字的重型测试)

| 信号 | 判定 | 动作 |
|---|---|---|
| **明示**:用户说"补集成测试 / 需求冻结 / 特性验收了 / 准备发版 / 要 Testcontainers" | 需求明确要重型 / 真实环境测试 | 直接开始(不再追问) |
| **推断**:特性已稳定 + SQL 密集 + 集成覆盖为零等信号同时出现,但用户没说 | 可能需要,未确认 | **先询问**:"是否开始为 X 补重型集成测试?"——确认后动手,拒绝则回到 java-unit-test |
| **无信号**:开发期常规写码 / 新功能开发 | 不需要 | **不写重型测试**;新功能测试 → java-unit-test(纯单测);存量重型测试照跑照修,不删不新增 |

> 重型测试是十秒级/条的重资产,写在还在变动的行为上 = 需求每变一次连带重写——"测试久过开发"的根源。默认永远从轻(开发期测试),重的东西等人开口。

## 分级

| 层 | 测什么 | 工具 | 详见 |
|---|---|---|---|
| **契约切片层**(无真实依赖) | 单层协议行为:参数校验 / 路由 / 异常处理 / JSON / HTTP 客户端逻辑 / 权限逻辑 | `@WebMvcTest` / `@JsonTest` / `@RestClientTest` | `03` |
| **真实依赖层**(测试自管容器) | 离开真实依赖就不成立的行为:SQL / 方言 / 迁移 / 事务传播 / 缓存语义 / 消息协议;冒烟;E2E | Testcontainers + `@DataJpaTest` / `@SpringBootTest` | `02`+`04`+`07` |

**容器准入判据**(机械化自问——每条容器用例写前过一遍):**这条断言离开真实 DB / Redis / Kafka 就不成立吗?**
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add baixuanzhu/skills/java-integration-test@sha256:3a47eed5f67d968d

The line at the top of this page pins the label v2.0.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

mdr badge

[![mdr](https://markdownregistry.com/badge/art_jvam3kjxtfdoiply.svg)](https://markdownregistry.com/a/art_jvam3kjxtfdoiply)

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.

versioncommittedcommitsizeaudit
v2.0.0 latest2026-10-04 b24ce00 18,811 BA 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 (18811 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

GitHub

baixuanzhu/skills · 3 stars · license MIT · pushed 2026-11-03 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_jvam3kjxtfdoiply
GET https://markdownregistry.com/api/v1/resolve?ref=baixuanzhu/skills/java-integration-test
GET https://markdownregistry.com/api/v1/blob/3a47eed5f67d968dbe7d4b42c1223d1e8786e98ac694895985814ce1d1b3000b

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 · eval/java-test/darwin-validation-v2.0.0/snapshots/blind/integration-A/version1/SKILL.md · Java/Spring Boot 集成测试 / 冒烟测试 / API 级 E2E 助手——在编写、评审、补全 集成测试时使用本技能,无论用户是否提到具体框架(集成测试 / 接口测试 / E2E / 冒烟测试 /…
v1.3.0 · audit A · 3 stars
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/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.