ohtest
OfficialAuto-generates OpenHarmony unit tests from .d.ts definitions.
Authoropenharmony
Version1.0.0
Installs0
System Documentation
What problem does it solve?
OpenHarmony developers face the challenge of turning .d.ts interface definitions into ready-to-run unit tests; this skill automates that workflow to save time and reduce human error.
Core Features & Use Cases
- Automatically generates Hypium-compatible test suites from .d.ts typings under ohosTest/ets.
- For each interface, creates a test module with four boundary cases (normal, max, min, stress) and registers it to List.test.ets.
- Keeps test suites in sync by updating List.test.ets to import and run the new suite.
Quick Start
Run python3 ohtest.py --dts /path/to/Index.d.ts --test-dir /path/to/ohosTest/ets to generate a new test suite.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: ohtest Download link: https://github.com/openharmony/napi_generator/archive/main.zip#ohtest Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.