auto-test-generator
v1.0.0自动为 OpenClaw 技能创建并运行基础单元/集成测试,确保代码质量并防止回归。
Installation
Please help me install the skill `auto-test-generator` from SkillHub official store.
npx skills add autogame-17/auto-test-generator
Auto Test Generator
Automatically generate basic unit/integration tests for OpenClaw skills. Use this to improve code quality and prevent regressions during evolution.
Usage
node skills/auto-test-generator/index.js <skill-name>
How It Works
- Scans the target skill directory.
- Analyzes
index.jsfor exports. - Generates a
test.jsfile with basic assertions (module loads, --help works). - Runs the generated test immediately.
Example
node skills/auto-test-generator/index.js skill-health-monitor
Output:
- Creates skills/skill-health-monitor/test.js
- Runs it
- Reports success/failure