Back to Registry View Author Profile
Official Verified
Test Case Generator
Skill by honestqiao
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/honestqiao/test-case-generatorOr
Test Case Generator
根据代码自动生成单元测试用例。
功能
- 从代码提取函数签名
- 自动生成测试框架代码
- 支持 Jest、Mocha、Pytest
- 智能生成测试参数
触发词
- "生成测试"
- "测试用例"
- "unit test"
- "generate test"
支持框架
// Jest
test('functionName should work', () => {
expect(result).toBe(expected);
});
// Mocha
it('functionName', () => {
assert(result === expected);
});
// Python Pytest
def test_function_name():
assert result is not None
输出
返回完整的测试文件代码,包含:
- 导入语句
- 测试用例
- Mock 数据
- 断言
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-honestqiao-test-case-generator": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.
Related Skills
clawra-selfie
Generate AI images using MiniMax or fal.ai (Grok Imagine) and send to messaging channels via OpenClaw
honestqiao 2387
zhipu-image
Generate images using Zhipu AI's CogView model
honestqiao 2387
Regex Generator
Skill by honestqiao
honestqiao 2387
zhipu-embeddings
Use Zhipu (智谱) web embeddings API for embeddingsing the internet. Use when user asks for web embeddings, latest news, or needs current information.
honestqiao 2387
doubao-image
Use Zhipu (智谱) web search API for searching the internet. Use when user asks for web search, latest news, or needs current information.
honestqiao 2387