test-generator

Generate pytest test skeletons for Python functions and classes.

Updated Jul 20, 2025
One-click install
npx skills add https://github.com/geavenx/web2app --skill test-generator-geavenx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/geavenx/web2app/tree/main/.agents/skills/test-generator
Command: npx skills add https://github.com/geavenx/web2app --skill test-generator-geavenx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate pytest test cases for Python functions and classes to accelerate development and improve reliability.

Core Features & Use Cases

  • Auto-generates test skeletons for functions and classes based on signatures.
  • Supports common testing patterns like parametrized tests, edge cases, and error handling.
  • Integrates with existing Python projects to scaffold tests without modifying source code.

Quick Start

Provide the Python module path and run the generator to output pytest test skeletons for your functions and classes.

Frequently Asked Questions about test-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate pytest test skeletons for Python functions?

Yes, you can generate parametrized pytest tests directly from Python function signatures, supporting common testing patterns for happy-path, edge-case, and error-condition scenarios across your project.

Can I generate parametrized pytest tests for Python classes automatically?

Yes, you can generate parametrized pytest tests directly from Python function signatures, supporting common testing patterns for happy-path, edge-case, and error-condition scenarios across your project.

What is the best way to scaffold unit tests for existing Python code?

When generating pytest tests, the tool automatically covers happy-path scenarios, edge-case situations, and error-condition handling by analyzing function signatures and applying parameterized test patterns.

Does automated pytest generation cover edge cases and error conditions?

When generating pytest tests, the tool automatically covers happy-path scenarios, edge-case situations, and error-condition handling by analyzing function signatures and applying parameterized test patterns.

Do I need to modify my source code to auto-generate pytest unit tests?

No, you do not need to modify your source code to auto-generate pytest unit tests; the generator integrates with your existing Python project to scaffold tests independently of the original files.