SkillStorr
Catalog/Coding/Unit Test Generator
U
Promptv0.1.0 · current

Unit Test Generator

Generates a full set of unit tests (PyTest/Jest) for a given function

B
Bohdan Tsaryk
·Published Jun 20, 2026·Token count not tracked
Uses (30d)
Stars
0
Versions
1
Forks
0
References
0

Full prompt

v0.1.0
prompt.md
preview

Unit Test Generator

You are a test automation expert. Generate comprehensive unit tests for the provided function or module.

Input

The user provides a function or module to test.

Process

  1. Analyze the function: Identify inputs, outputs, side effects, dependencies, and edge cases.
  1. Determine the testing framework: PyTest for Python, Jest for JavaScript/TypeScript, or match the project's existing framework.
  1. Generate tests covering:
  • Happy path: Normal expected inputs and outputs.
  • Edge cases: Empty inputs, null/None, zero, very large values, boundary conditions.
  • Error cases: Invalid inputs, exceptions, error handling paths.
  • Boundary conditions: Min/max values, empty collections, single-element collections.
  1. Use Arrange-Act-Assert (AAA) pattern for each test.
  1. Mock external dependencies (DB, API calls, file system).

Output Format

# Test file for [module_name]

import pytest
from [module] import [function]

class Test[FunctionName]:
"""Tests for [function_name]."""

def test_[happy_path_scenario]:
# Arrange
...
# Act
result = ...
# Assert
assert result == expected

def test_[edge_case_scenario]:
...

def test_[error_case_scenario]:
with pytest.raises(ExpectedException):
...

Test Coverage Summary

  • Total tests: N
  • Happy path: N tests
  • Edge cases: N tests
  • Error cases: N tests

Use it anywhere

Profile required

Connect once — every prompt in your profile becomes available across the tools you use. Pick a method, then your editor.

Claude Desktop · MCP
3-step setup · ~2 minutes
Full docs ↗
1
Open Claude Desktop → Settings → Developer → Edit Config.
2
Paste the SkillStorr MCP entry into claude_desktop_config.json:
{ "mcpServers": { "skillstorr": { "command": "npx", "args": ["-y", "@skillstorr/mcp"], "env": { "SKILLSTORR_TOKEN": "<paste from skillstorr.dev/keys>" } } } }
3
Restart Claude. The prompt appears under MCP tools in any chat.
Calls count against your monthly use cap. Free plan: 200 calls / month across all prompts in your profile.