generate-pytest

Community

Generate pytest tests from STD and context

AuthorRuclo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the generation of executable pytest tests from a Software Test Description (STD) and repository context, reducing manual translation effort and ensuring consistency with project conventions.

Core Features & Use Cases

  • Automated test generation: Converts STD scenarios into structured pytest functions with appropriate fixtures, imports, and markers.
  • Context-aware mapping: Leverages context.json to select utilities, fixtures, and naming conventions aligned with the repository.
  • Use Case: Given an STD describing a feature and its acceptance criteria, this Skill produces a ready-to-run pytest module that integrates with the repository's test suite.

Quick Start

Use the generate-pytest skill to convert STD examples into executable tests using the repository context. For example:

  • Command: /generate-pytest std_vm_reset.md context.json
  • Output: tests/virt/lifecycle/test_vm_reset.py

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: generate-pytest
Download link: https://github.com/Ruclo/thesis/archive/main.zip#generate-pytest

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.