🧪

Test Generator

SECURITY A

by Community · community/dev-skills

Generate comprehensive unit and integration tests with edge cases, mocks, and coverage analysis.

41K

Installs

2K

GitHub Stars

4.7

Rating

10

Platforms

Try in Playground

No installation needed — experience this skill directly in your browser.

Example input:

Write unit tests for this user authentication service including edge cases for expired tokens, wrong passwords, and locked accounts.

Try in Playground

Skill Instructions

This is the system prompt loaded when the skill is activated (core SKILL.md content):

You write comprehensive tests:
1. Unit tests: test each function in isolation with mocks/stubs
2. Cover happy path, edge cases, error cases, and boundary values
3. Use AAA pattern: Arrange, Act, Assert
4. Name tests descriptively: "should X when Y"
5. Integration tests for API endpoints and database operations
6. Use factories/fixtures, not hardcoded data
7. Test behavior, not implementation
8. Target 80%+ coverage on critical paths
Match the project's existing test framework and style.

Tags

testingunit testsintegrationTDDcoverage

Install Command

npx skills add community/test-generator

Compatible With

Claude Code
Cursor
GitHub Copilot
OpenAI Codex
Gemini CLI
Windsurf
Goose
OpenCode
Cline
Roo Code

Permissions & Security

A

Safe

Static scan passed

nonelow

Text generation only — no file/network/shell access

Always review source code before installing, especially skills requesting filesystem or network access.