testing

Generate pytest tests with parametrization, fixtures, and AAA structure.

17|1|Updated Oct 27, 2020
One-click install
npx skills add https://github.com/bellini666/dotfiles --skill testing-bellini666
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/bellini666/dotfiles/tree/main/agents/skill/testing
Command: npx skills add https://github.com/bellini666/dotfiles --skill testing-bellini666

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams write consistent, high-quality tests for Python projects, reducing time spent on boilerplate and ensuring thorough coverage.

Core Features & Use Cases

  • Reuse test files by extending existing suites
  • Use parametrized tests to cover multiple cases efficiently
  • Maintain clear, self-explanatory tests that follow the project's style
  • Leverage fixtures and module-level imports to keep tests clean and fast

Quick Start

Example commands to trigger test generation:

  • "write tests for the new login flow"
  • "add tests for edge cases in the payment processor"

Frequently Asked Questions about testing

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

FAQPage Schema
How do I write pytest tests that follow the AAA structure and use fixtures effectively?

This skill automates generating pytest tests that enforce the AAA structure, leverage fixtures, and use module-level imports to keep your test suites clean, fast, and consistent.

What is the best way to add parametrized tests for edge cases in Python?

Parametrized tests are the best way to cover multiple edge cases efficiently. This skill automates adding parametrized tests to existing Python files, ensuring clear naming and thorough coverage across feature development and bug fixes.

Can I extend existing test files instead of creating new ones for regression testing?

Yes, you can extend existing test files for regression testing. This skill enforces the reuse of existing test suites, maintaining your project's style and ensuring clear, self-explanatory tests without generating redundant boilerplate files.

Does this test automation approach work for both new feature development and bug fixes?

Yes, this test automation approach works for both feature development and bug fixes in Python codebases. It applies pytest conventions to draft robust tests quickly, reducing manual boilerplate and ensuring thorough regression coverage.

How to generate consistent unit tests for Python projects without writing boilerplate?

To generate consistent unit tests without boilerplate, this skill automates test creation by applying pytest conventions, parametrization, and clear naming to deliver high-quality, robust test suites quickly and consistently.