xts-generator

Official

Generate type-safe OpenHarmony XTS tests from API docs

Authoropenharmonyinsight
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the repetitive and error-prone work of writing OpenHarmony XTS (Hypium) test cases manually by deriving consistent test coverage directly from API documentation.

Core Features & Use Cases

  • Automated XTS test generation from Markdown API docs: Extracts module names, method signatures, parameters, return types, enum definitions, permissions, and error codes from js-apis-* documentation.
  • Coverage across scenarios: Generates normal cases, null/undefined/exception cases, optional-parameter combination tests, enum value tests, and file path/URI tests with systematic numbering.
  • Enforces strict Hypium standards: Produces TypeScript/ETS code with strict type safety (no any/unknown), single error-code assertions, and English-only logs/comments.

Quick Start

Ask the AI to use xts-generator to generate the required .ets XTS test file(s) for a given OpenHarmony API module using the provided js-apis-* Markdown documentation.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: xts-generator
Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#xts-generator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.