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
0516
Profile unavailable
Coding

Browser Automation

Browser automation for AI agents using PinchTab. Control Chrome programmatically for testing, scraping, and interaction. Features token-efficient text extrac...

Registry SourceRecently Updated
0126
Profile unavailable
Coding

QA Reviewer

提供代码审查、单元测试、覆盖率分析和问题追踪,支持C++/Python/JavaScript,确保项目质量和文档完整度。

Registry SourceRecently Updated
2181
Profile unavailable