OpenHarmony XTS 编译和运行
SkillFiles & storageOpenHarmony XTS combined build and run command. Completes XTS test project building and running in one stop. Use this skill when the user needs to execute the full XTS testing workflow: (1) build the XTS test project to generate HAP files, (2) run XTS tests and display results. Supports passing --pa
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the OpenHarmony XTS 编译和运行 skill
What this skill tells your AI
The instructions your AI receives, as published by openharmonyinsight/openharmony-skills in skills/oh-xts-build-run/SKILL.md and read by ahel’s review.
此 Skill 将 XTS 编译 (/oh-xts-build) 和运行 (/oh-xts-run) 组合成一个完整的工作流。
工作流程
-
执行编译:运行
/oh-xts-build- 更新 List.test.ets 注册测试用例
- 使用 hvigorw 编译生成 HAP 文件
- 检查主 HAP 和测试 HAP 是否生成成功
-
判断结果:
- 如果编译失败 → 停止流程,返回编译错误
- 如果编译成功 → 继续执行运行
-
执行运行:运行
/oh-xts-run [参数]- 自动解析包名(从 pack.info 或 module.json5)
- 运行测试并解析结果统计
-
汇总结果:统一展示编译和运行的完整输出
参数
--package=<package-name>:指定包名(可选)--api=<api-name>:指定测试类名(可选)
实现位置
- 编译命令:
packages/cli/src/ui/commands/ohXtsBuildCommand.ts - 运行命令:
packages/cli/src/ui/commands/ohXtsRunCommand.ts - 核心模块:
packages/cli/src/modules/xts/build-runner.ts
Signals
- GitHub stars
- 34
- Forks
- 7
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
oh-xts-build-run- Source
- github.com/openharmonyinsight/openharmony-skills