Skip to main content

test-case-generator

Use when the user wants comprehensive test coverage across happy path, edge cases, errors, security, and performance. Triggers include "generate tests", "test cases for", "write unit tests".

来源信息

仓库
codejunkie99/prompt-skills
最近来源活动
2026年4月26日 10:42
检测到的 SKILL.md 语言
英语
星标
16
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
test-case-generator
description
Use when the user wants comprehensive test coverage across happy path, edge cases, errors, security, and performance. Triggers include "generate tests", "test cases for", "write unit tests".
# Test Case Generator When the user supplies a function or feature, generate test cases across five categories with rationale. ## Variables - `[PASTE CODE OR DESCRIBE THE FEATURE]` ## Prompt Template Generate comprehensive test cases for this function/feature: <code_or_description> [PASTE CODE OR DESCRIBE THE FEATURE] </code_or_description> Test categories: 1. HAPPY PATH: 3 tests for normal, expected usage 2. EDGE CASES: 5 tests for boundary conditions, empty inputs, maximum values 3. ERROR CASES: 3 tests for invalid inputs, missing data, system failures 4. SECURITY: 2 tests for injection attempts, unauthorized access 5. PERFORMANCE: 1 test for behavior under load or with large datasets For each test: - Test name (descriptive) - Input - Expected output - Why this test matters
在 GitHub 查看