gen-test

Generate pytest test files following happy-simulator project conventions.

11|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/adamfilli/happy-simulator --skill gen-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gen-test
Source: https://github.com/adamfilli/happy-simulator/tree/main/.claude/skills/gen-test
Command: npx skills add https://github.com/adamfilli/happy-simulator --skill gen-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of pytest test files, ensuring adherence to project conventions and reducing boilerplate code for developers.

Core Features & Use Cases

  • Test Generation: Creates new pytest test files based on specified functionality.
  • Convention Enforcement: Follows established patterns for timing, file organization, and imports within the happy-simulator project.
  • Use Case: A developer needs to write a new integration test for a recently implemented queuing mechanism. They use this Skill to generate the basic test file structure, imports, and setup, allowing them to focus immediately on the test logic and assertions.

Quick Start

Use the gen-test skill to generate a new integration test for the 'server' component.

Frequently Asked Questions about gen-test

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

FAQPage Schema
How do I generate pytest test files that follow specific project conventions?

To generate pytest test files that follow specific project conventions, this Skill automates the creation of unit and integration tests, enforcing established patterns for deterministic timing, file organization, and imports.

How do I automate boilerplate setup for Python integration tests?

You can automate boilerplate setup for Python integration tests by using this Skill to generate the basic test file structure and imports, allowing you to focus immediately on test logic and assertions.

Can I create deterministic test scenarios for a Python simulator project?

Yes, you can create deterministic test scenarios for a Python simulator project because the generated pytest files adhere to established patterns for structured scenarios and deterministic timing.

Does this test generation tool enforce file organization and import patterns?

Yes, this test generation tool enforces file organization and import patterns by automatically adhering to the established conventions defined within the happy-simulator ecosystem.

What is the best way to scaffold unit tests for new Python components?

The best way to scaffold unit tests for new Python components is to use this Skill, which generates pytest test files based on specified functionality while reducing manual boilerplate code.