Search

PythonReactSEOPDF
OpenClaw

Test Case Generator

Test Case Generator

honestqiao0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install honestqiao/test-case-generator

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/honestqiao/test-case-generator
Version
—
Commit
08c5fd6bababca7728dac1048c84dfb3f5bf0a35
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 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 数据
- 断言

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.