test-generator

Official

Instantly generate TDD-ready test code.

AuthorAtyantik
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing new tests, especially following strict TDD (Test-Driven Development) and project conventions, can be time-consuming and repetitive. This Skill automates the creation of test boilerplate, ensuring consistency and adherence to best practices from the start.

Core Features & Use Cases

  • TDD-Compliant Boilerplate: Generates tests with the Arrange-Act-Assert (AAA) pattern, complete with type hints, descriptive docstrings, and proper imports.
  • Multiple Test Types: Supports generating tests for functions, classes, async code, parametrized tests, and Pytest fixtures.
  • Quality Standards Enforcement: Ensures generated tests meet project-specific quality standards, including no excessive mocking and focus on edge cases.
  • Use Case: When starting a new feature, ask the AI to "generate tests for the validate_email function in src/python_modern_template/validators.py" to get a ready-to-use test file, allowing you to focus on implementing the actual code.

Quick Start

Generate tests for the process_data function in src/my_module/processor.py.

Dependency Matrix

Required Modules

pytest

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: test-generator
Download link: https://github.com/Atyantik/python-modern-template/archive/main.zip#test-generator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository