coverage
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCoverage
覆盖率
What to cover
测量范围
Same two dimensions as the skill — test type, optionally narrowed
to a module / group:
run-tests| Coverage by | Typical Gradle task | Meaning |
|---|---|---|
| | Both suites merged ( |
| | What the fast tests alone cover. |
| | What the Testcontainers tests alone cover. Needs Docker. |
| + a module / group | | Narrows any of the above to one package/class/subproject. |
与技能的两个维度一致——测试类型,可选择性缩小至某个模块/组:
run-tests| 覆盖率范围 | 典型Gradle任务 | 含义 |
|---|---|---|
| | 合并两个测试套件( |
| | 仅快速单元测试的覆盖范围。 |
| | 仅Testcontainers集成测试的覆盖范围。需要Docker。 |
| + 模块/组 | | 将上述任一范围缩小至单个包/类/子项目。 |
Pick the path
选择执行路径
Probe FIRST, here, before loading either reference — so you read only the one you
need. Call (via ToolSearch if the tool schema isn't
loaded):
steroid_list_projects- It returns the repo you're in → IDE path: note that entry's and follow
project_name(runs the coverage Gradle task inside the IDE in its own Run tab). Its steps start already knowing thereferences/ide.md— don't re-probe.project_name - It fails, or the repo isn't listed → console Gradle path: follow
(runs Gradle in the console) and tell the user you used the console fallback because the IDE wasn't reachable.
references/gradle.md
Both paths end by collecting the result in a Haiku subagent that returns the
report and nothing else — keeping the long build/coverage
output out of the main context. Act on that report in the main model.
references/report.md在加载任一参考文档前,请先进行探测——这样你只需读取所需的文档。调用(若工具架构未加载,可通过ToolSearch调用):
steroid_list_projects- 返回当前所在仓库 → IDE路径:记录该条目的,并遵循
project_name(在IDE内的独立运行标签页中执行覆盖率Gradle任务)。其步骤已预设references/ide.md——无需重复探测。project_name - 探测失败,或仓库未被列出 → 控制台Gradle路径:遵循(在控制台中运行Gradle),并告知用户因无法连接IDE而使用控制台 fallback 方案。
references/gradle.md
两种路径最终都会通过Haiku subagent收集结果,该子agent仅返回报告,不会返回其他内容——避免冗长的构建/覆盖率输出占用主上下文。主模型可基于该报告执行后续操作。
references/report.md