Skip to content
Back to skills

Test Generate

ASecurity

Generates unit tests for a file or function with full coverage of edge cases

  • 10 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added May 27, 2026
data-aigo

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill test-generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-test-generate/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-test-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-generate
description: Generates unit tests for a file or function with full coverage of edge cases
argument-hint: <file-path> [function-name]
user-invocable: true
allowed-tools: Read Glob Grep Edit
effort: medium
---

## Generate Tests

Target: **$1** $2

1. Read the file and understand:
   - What framework is used (Jest, Vitest, Mocha, pytest, Go test, etc.) - check existing test files for patterns
   - The function/class signatures, types, return values
   - Existing tests (if any) to match style

2. Identify test cases:
   - Happy path (normal usage)
   - Edge cases (null, undefined, empty, boundary values)
   - Error cases (thrown exceptions, rejected promises)
   - Async behavior if applicable

3. Write tests following the project's existing test style.

4. Place the test file next to the source or in `__tests__/` - match project convention.

5. Show a summary: N tests covering X scenarios.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…