What problem does it solve?
This Skill removes the manual two-step process of compiling an OpenHarmony XTS test project and then running it to collect and inspect results, reducing time-to-feedback when verifying changes.
Core Features & Use Cases
- Unified build + run workflow: Runs
/oh-xts-build to produce the required HAP artifacts, then automatically proceeds to /oh-xts-run to execute the tests.
- Result validation and reporting: Stops early when compilation fails; otherwise parses and summarizes XTS execution statistics into a single combined output.
- Flexible runtime targeting: Supports passing
--package to select a package and --api to target a test class during the run stage.
Use case example: After updating an XTS test suite, compile the test artifacts and immediately run the relevant tests while capturing both compilation output and execution statistics in one run.
Quick Start
Run the XTS build-and-run workflow and optionally focus on a specific package and test class by issuing: /oh-xts-build-run --package=<package-name> --api=<api-name>.