pytest-runner

Execute pytest test suites with coverage reporting and failure diagnostics.

175|26|Updated Aug 14, 2025
One-click install
npx skills add https://github.com/jmagly/ai-writing-guide --skill pytest-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytest-runner
Source: https://github.com/jmagly/ai-writing-guide/tree/main/agentic/code/frameworks/sdlc-complete/extensions/python/skills/pytest-runner
Command: npx skills add https://github.com/jmagly/ai-writing-guide --skill pytest-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill runs Python tests with pytest, including fixture support, markers, coverage reporting, and optional parallel execution to improve test feedback.

Core Features & Use Cases

  • Discover and run tests with pytest, including fixtures and markers.
  • Generate coverage reports and summarize results.
  • Support parallel execution and targeted test selection.

Quick Start

Run pytest on the tests directory and review the test results with an optional coverage report.

Frequently Asked Questions about pytest-runner

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

FAQPage Schema
How do I run Python tests with pytest and get coverage reports?

pytest-runner executes Python test suites and generates coverage reports automatically. It discovers tests in your directories, runs them with fixture and marker support, collects coverage data, and summarizes results in a single workflow for immediate feedback on test health and code coverage.

Can I run pytest tests in parallel to speed up test execution?

Yes, pytest-runner supports optional parallel execution across multiple test files and directories. This accelerates feedback cycles in CI environments and local workflows by distributing test load, while maintaining proper fixture isolation and result aggregation.

Does pytest-runner work with pytest fixtures and test markers?

pytest-runner fully supports pytest fixtures and markers for selective test execution. You can filter and organize tests by markers, manage fixture setup and teardown, and run targeted test subsets without executing the entire suite.

How do I use pytest-runner in CI environments for automated testing?

pytest-runner integrates into CI pipelines with environment grounding checks, test discovery, execution, coverage collection, and failure diagnostics. It provides checkpoints and recovery procedures to handle test failures, making it suitable for both local and continuous integration workflows.

What happens when pytest tests fail—how does pytest-runner handle diagnostics?

pytest-runner implements failure analysis and diagnostic procedures to identify why tests failed. It captures detailed failure information, provides recovery checkpoints, and generates reports that help you debug and fix broken tests quickly.