根据代码自动生成单元测试用例。
Scanned 9/10/2026
Install to Claude Code
npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill test-case-generator --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Test Case Generator?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/luokai0-test-case-generator)More formats (shields.io, HTML) on the badges page.
# Test Case Generator
根据代码自动生成单元测试用例。
## 功能
- 从代码提取函数签名
- 自动生成测试框架代码
- 支持 Jest、Mocha、Pytest
- 智能生成测试参数
## 触发词
- "生成测试"
- "测试用例"
- "unit test"
- "generate test"
## 支持框架
```javascript
// 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 数据
- 断言
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!