test-generator

Generate pytest test code for application layers following project conventions.

2|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/onejaejae/skills --skill test-generator-onejaejae
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/onejaejae/skills/tree/main/plugins/ai-registry/common/workflow-bundle/skills/test-generator
Command: npx skills add https://github.com/onejaejae/skills --skill test-generator-onejaejae

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of Python test code, ensuring comprehensive test coverage and adherence to project conventions, thereby reducing manual testing effort and improving code quality.

Core Features & Use Cases

  • Test Scenario Implementation: Generates pytest code based on predefined test scenarios.
  • Layer-Specific Testing: Writes tests for specific layers (e.g., service, repository) of an application.
  • Convention Adherence: Follows established project patterns for file structure, naming, and testing methodologies (e.g., AAA pattern, Parametrize, PATCH updates).
  • Use Case: After defining test scenarios with test-planner, use this Skill to automatically generate the corresponding pytest files, saving developers significant time and ensuring consistency.

Quick Start

Use the test-generator skill to write pytest code for the service layer of the user feature.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I automatically generate pytest code for specific application layers?

To automatically generate pytest code for specific application layers, provide your test scenarios to the generator. It outputs pytest files tailored for controller, service, or repository layers, adhering to project conventions like AAA and parametrize.

What testing patterns does automated Python test generation support?

Automated Python test generation supports the AAA pattern, parametrize, and specific handling for PATCH request partial updates. The generated pytest code follows these established testing methodologies to ensure comprehensive coverage.

Can I generate tests for my existing test scenarios without manual coding?

Yes, you can generate tests from predefined test scenarios without manual coding. The generator takes your defined scenarios and outputs complete pytest files, reducing manual testing effort and ensuring consistency across your project.

Does the generated pytest code follow project file structure and naming conventions?

Yes, the generated pytest code follows project file structure and naming conventions. It adheres to specific import conventions and fixture usage for different application layers, ensuring tests integrate seamlessly with your existing codebase.

What is the best way to write pytest unit tests for a Python service layer?

The best way to write pytest unit tests for a Python service layer is using an automated test generator. It creates pytest code from your scenarios, applying layer-specific import conventions, fixture usage, and testing patterns like AAA to ensure quality.

When do I need to generate pytest code for PATCH request partial updates?

You need to generate pytest code for PATCH request partial updates when testing API endpoints that modify resources partially. The generator automatically structures these tests according to project conventions, ensuring accurate validation of partial update logic.