generate-pytest

Generate executable pytest tests from STD files and repository context.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/Ruclo/thesis --skill generate-pytest
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-pytest
Source: https://github.com/Ruclo/thesis/tree/main/v2/skills/generate-pytest
Command: npx skills add https://github.com/Ruclo/thesis --skill generate-pytest

SYSTEM DOCUMENTATION & REQUIREMENTS

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

Frequently Asked Questions about generate-pytest

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

FAQPage Schema
How do I generate pytest tests from a Software Test Description?

You generate pytest tests from an STD by providing the STD file and a context.json to the tool, which maps scenarios to fixtures and imports to produce a ready-to-run pytest module.

What is context-aware test generation for pytest?

Context-aware test generation uses a context.json file captured from repository exploration to select utilities, fixtures, and naming conventions aligned with the project when creating pytest tests.

Do I need a context.json file to automate pytest test generation?

Yes, you need a context.json file captured from exploring your test context, as the tool relies on it to map STD scenarios to the correct repository utilities and fixtures.

How to convert STD acceptance criteria into executable pytest functions?

To convert STD acceptance criteria into executable pytest functions, pass the STD file and repository context to the tool, which outputs a pytest file following project conventions.

Does automated pytest generation follow existing repository test conventions?

Yes, automated pytest generation validates compatibility with the project's test framework and follows repository conventions by leveraging the provided context.json during test creation.