testing

Generate, review, and execute pytest test suites with workflow routing.

Updated Jul 2, 2025
One-click install
npx skills add https://github.com/williaby/.claude --skill testing-williaby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/williaby/.claude/tree/main/skills/testing
Command: npx skills add https://github.com/williaby/.claude --skill testing-williaby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, coverage, find, grep, and includes references (resource) components.

What problem does it solve?

This Skill streamlines the entire testing lifecycle for Python projects, from generating comprehensive test suites to reviewing their quality and executing them efficiently. It eliminates the manual burden of writing and maintaining tests, ensuring high code quality and reducing bugs, so you can deliver reliable software faster.

Core Features & Use Cases

  • Test Generation: Automatically create unit, integration, and E2E tests with 80%+ coverage for new modules.
  • Test Review: Analyze existing test suites for quality, coverage gaps, and adherence to best practices.
  • Specialized Testing: Generate performance, security, and end-to-end tests for complex pipelines.
  • Use Case: After developing a new data processing module, use /testing/generate [module-path] to automatically create a comprehensive test suite, ensuring high coverage and adherence to project standards.

Quick Start

Generate a comprehensive test suite for your new 'payment_processor' module, aiming for 80%+ coverage. /testing/generate payment_processor

Frequently Asked Questions about testing

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

FAQPage Schema
How do I generate a comprehensive test suite with high code coverage for a Python module?

Test generation automatically creates unit, integration, and end-to-end tests targeting 80%+ coverage for new modules. Use `/testing/generate [module-path]` to produce a structured test suite that adheres to pytest standards, AAA structure, and best practices without manual writing.

Can I automate test execution and coverage reporting for pytest projects?

Yes. This Skill automates test execution, tracks coverage metrics, and generates structured reports. It enforces 80%+ coverage thresholds and integrates with pytest, coverage tools, and standard markers to streamline the full testing lifecycle.

What's the best way to review existing tests for quality and coverage gaps?

Test review analyzes your existing test suite against pytest standards, identifies coverage gaps, and flags deviations from best practices like proper fixture usage and AAA structure. It provides actionable feedback without rewriting your entire test base.

How can I generate security and performance tests for complex Python pipelines?

Specialized testing workflows generate security-focused and performance tests tailored to complex pipelines. The Skill routes requests to security-auditor and test-engineer agents based on your intent and keywords, producing targeted test suites for non-standard scenarios.

Do I need to write test fixtures manually, or can they be auto-generated?

Fixtures are auto-generated and integrated into test suites during generation. The Skill provides guidance on proper fixture usage, follows pytest conventions, and ensures fixtures align with your module structure and dependencies.