testing

Generate, review, and execute pytest tests with coverage reports.

1|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/ByronWilliamsCPA/rag-processor --skill testing-byronwilliamscpa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/ByronWilliamsCPA/rag-processor/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/ByronWilliamsCPA/rag-processor --skill testing-byronwilliamscpa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation, review, and execution of tests for pytest-based projects, reducing manual testing toil, accelerating feedback, and improving code quality.

Core Features & Use Cases

  • Test Generation: Automatically generate pytest-based unit and integration tests for codebases.
  • Test Review: Assess existing tests for coverage, style, and maintainability.
  • Specialized Testing: Includes end-to-end (e2e), security, and performance testing patterns to strengthen your test suite.

Quick Start

Use the Testing Skill to generate and run tests for your pytest project. Example commands include:

  • Run all tests: uv run pytest
  • Run integration tests: uv run pytest -m "integration"

Frequently Asked Questions about testing

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

FAQPage Schema
How do I automatically generate unit tests for my pytest project?

Automated test generation creates pytest-based unit tests for your codebase using patterns like AAA (Arrange-Act-Assert) and fixtures. The Skill generates comprehensive tests across unit, integration, e2e, security, and performance categories, then executes them via uv with pytest commands to validate your code.

Can I run integration tests separately from unit tests in pytest?

Yes. Tests are organized by category (unit, integration, e2e, security, performance). Run integration tests alone with `uv run pytest -m "integration"` or all tests with `uv run pytest`. The Skill structures tests to support selective execution by category.

What's the best way to achieve high code coverage with pytest?

The Skill enforces minimum 80% code coverage with branch coverage tracking, generating HTML and terminal reports to identify gaps. It uses pytest tooling—including mutmut for mutation testing and hypothesis for property-based testing—to produce maintainable, comprehensive test suites that catch edge cases.

How do I review existing tests for coverage and maintainability?

Test review assesses your existing pytest suite for coverage gaps, style consistency, and maintainability. The Skill analyzes tests, generates detailed reports, and applies pytest patterns (AAA, fixtures) to recommend improvements and ensure tests are organized by category.

Does this work for security and performance testing beyond unit tests?

Yes. Beyond unit and integration tests, the Skill includes specialized patterns for end-to-end (e2e), security, and performance testing. All test types run under the same pytest framework with uv, enforcing 80% coverage and generating unified HTML and terminal reports.

What pytest tools does this Skill use to improve test quality?

The Skill leverages pytest, mutmut for mutation testing, and hypothesis for property-based testing. These tools work together with AAA patterns and fixtures to automate test generation, detect edge cases, validate coverage, and produce maintainable, comprehensive test suites.