🦀 ClawHub
Test Case Generator
by @honestqiao
Automatically generate complete unit test code including imports, test cases, mocks, and assertions for Jest, Mocha, or Pytest from given code.
TERMINAL
clawhub install test-case-generator📖 About This Skill
Test Case Generator
根据代码自动生成单元测试用例。
功能
触发词
支持框架
// 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
输出
返回完整的测试文件代码,包含: