mcpField
P
pytest-optimizer

pytest-optimizer

github.com/jorgealvesTesting & quality2212 installsUpdated 3d ago
Repository

About pytest-optimizer

A skill for analyzing and optimizing pytest suites, aimed at Python project maintainers seeking faster tests, fewer flaky results, and better coverage. Its analysis runs locally without transmitting source code or credentials.

Key features

  1. 01Analyze pytest suites
  2. 02Improve test speed
  3. 03Identify flaky tests
  4. 04Increase test coverage
  5. 05Run analysis locally

Use cases

  1. 01Setting up a Python project
  2. 02Optimizing CI test pipelines
  3. 03Modernizing legacy test suites

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jorgealves/agent_skills --skill pytest-optimizer

After installing, type/pytest-optimizerin Claude Code to confirm it loaded.

Bundled filesskill.yaml

Details

From the project README

pytest Optimizer

Purpose and Intent

Analyze and optimize pytest suites to improve speed, identify flaky tests, and increase coverage. Use to maintain high-quality, fast-running test pipelines.

When to Use

  • Project Setup: When initializing a new Python project.
  • Continuous Integration: As part of automated build and test pipelines.
  • Legacy Refactoring: When updating older Python codebases to modern standards.

When NOT to Use

  • Non-Python Projects: This tool is specialized for the Python ecosystem.

Error Conditions and Edge Cases

  • Missing Requirements: If the project lacks a requirements.txt or pyproject.toml.
  • Incompatible Versions: If the project uses a Python version not supported by the tools.

Security and Data-Handling Considerations

  • All analysis is performed locally.
  • No source code or credentials are ever transmitted externally.

Comments

Markdown supported