Test Case Generator

# Test Case Generator

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Test Case Generator" with this command: npx skills add honestqiao/test-case-generator

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 数据
  • 断言

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

QA & Test Engineering Command Center

Comprehensive QA system for planning strategy, writing tests, analyzing coverage, automating pipelines, performance and security testing, defect triage, and...

Registry SourceRecently Updated
9731Profile unavailable
Coding

Flexible Web Tester

智能 Web UI 测试工作台,支持 MCP 直接驱动和 Python 脚本驱动双模式,三种测试模式,强制人工确认,安全可控。

Registry SourceRecently Updated
2860Profile unavailable
Coding

Seam Type Selector

Select the right seam type (Preprocessor / Link / Object) for breaking a dependency in legacy code. Use whenever a developer needs to substitute behavior for...

Registry SourceRecently Updated
490Profile unavailable
Coding

Monster Method Decomposition

Decompose a very large method (100+ lines, deeply nested) safely using automated refactoring and Feathers' Bulleted/Snarled classification. Use whenever a de...

Registry SourceRecently Updated
440Profile unavailable