跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/apache/shardingsphere/gen-ut

Codex gen-ut for ShardingSphere Java Unit Tests and Branch Coverage

Give Codex a ShardingSphere Java target class and Maven module. The skill maps branches owned by the class before updating its tests, checks whether parameterized cases belong together, and accounts for any requested numeric coverage target.

中文

Install in Codex

Codex and a ShardingSphere checkout containing the skill. Running tests also requires the repository's JDK and a working Maven environment.

  1. In a ShardingSphere checkout containing the pinned source, confirm `.codex/skills/gen-ut/SKILL.md` and the adjacent `code-implementation` skill are present. Keep the repository layout intact.
  2. Open the repository root in Codex and give `$gen-ut` the fully qualified class name. If the picker does not list the skill, ask Codex to read `.codex/skills/gen-ut/SKILL.md` and `AGENTS.md` explicitly in the same task.

Example task

In a local ShardingSphere practice branch, select a routing-rule class with an existing unit test. Ask Codex: ‘$gen-ut, use the Java file I have open. First report its fully qualified name, Maven module, and the rule-present and rule-absent branches. After confirmation, update only the corresponding Test file.’

What to check

The branch map identifies both cases and their assertions. After confirmation, changes stay within the matching test file and any required test resources. Report the Maven result or the reason the command could not run.

Original SKILL.md on GitHub · Updated 2026-11-12

Frequently asked question

Does gen-ut require a new test class?

Look for `<TargetClassName>Test` first. Extend an existing matching test class and create one only when there is no match.

Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯