TopRank Skills

Home / Claw Skills / Autres / Test Generator
Official OpenClaw rules 15%

Test Generator

Automated test case generator. Unit tests, integration tests, end-to-end tests, mock objects, test fixtures, coverage analysis, edge case generation, performance benchmarks. Supports Python, JavaScript, Go. testing, tdd, pytest, jest, vitest, mocha, developer-tools.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Test Generator 技能。 若已安装,则直接安装 Test Generator 技能。

Overview

Skill Key
ckchzh/test-generator
Author
ckchzh
Source Repo
openclaw/skills
Version
-
Source Path
skills/ckchzh/test-generator
Latest Commit SHA
8baca051a52f55a7302c0733c6151cb852312cf6

Extracted Content

SKILL.md excerpt

# Test Generator — Automated Test Case Generation

> Generate high-quality test code in seconds, stop writing boilerplate by hand

## Why Use This?

- Writing tests is tedious → auto-generate templates, fill in business logic
- Missing edge cases → `edge` command systematically generates boundary tests
- Mock setup is verbose → standardized mock patterns, ready to copy-paste

## Command Reference

```
unit <lang> <function>       → Unit test template
integration <lang> <module>  → Integration test template
e2e <lang> <flow>            → End-to-end test flow
mock <lang> <target>         → Mock/Stub objects
fixture <lang> <type>        → Test fixtures
coverage <lang>              → Coverage config and tips
edge <type> <range>          → Edge case generation
benchmark <lang> <target>    → Performance benchmark test
```

## Supported Frameworks

| Language | Test Framework |
|----------|---------------|
| Python | pytest, unittest |
| JavaScript | Jest, Mocha, Vitest |
| Go | testing, testify |
| Bash | bats |

## Best Practice

Name tests as `test_<feature>_<scenario>_<expected>` for instant readability.

Related Claw Skills