pytest-setup

Automate pytest, coverage, and watch mode setup for Python projects.

16|3|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/jonlwowski012/copilot-agent-factory --skill pytest-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytest-setup
Source: https://github.com/jonlwowski012/copilot-agent-factory/tree/main/skill-templates/1-testing-quality/pytest-setup
Command: npx skills add https://github.com/jonlwowski012/copilot-agent-factory --skill pytest-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, and includes scripts (resource) components.

What problem does it solve?

Standardizes and accelerates the setup of pytest, coverage reporting, and watch mode for Python projects, reducing boilerplate and configuration errors.

Core Features & Use Cases

  • Automated setup of pytest, pytest-cov, and pytest-watch across common package managers.
  • Project structure guidance for tests and fixtures, including conftest.py templates.
  • Troubleshooting and best practices for configuring pytest and running with coverage in CI or local environments.

Quick Start

Install pytest and extensions, create a test structure, and configure pytest in your project.

Frequently Asked Questions about pytest-setup

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

FAQPage Schema
How do I set up pytest with coverage and watch mode for my Python project?

Setting up pytest with coverage and watch mode involves installing pytest, pytest-cov, and pytest-watch. This standardizes test tooling configuration across multiple package managers and CI environments, reducing boilerplate and configuration errors.

What is the best way to structure test directories and fixtures in pytest?

The best way to structure test directories and fixtures in pytest is to use a standardized project structure with conftest.py templates. This provides reliable test tooling and ensures fixtures are correctly configured across your development workflow.

Does pytest-watch work with different package managers in CI environments?

Yes, pytest-watch works with common package managers in CI environments. The setup automates configuration across multiple package managers, ensuring reliable test tooling and continuous test execution during local development and CI pipelines.

Why does my pytest coverage configuration fail in CI pipelines?

Pytest coverage configuration often fails in CI pipelines due to misconfigured test directories or missing dependencies. Applying standardized setup guidance for pytest-cov and troubleshooting best practices ensures reliable coverage reporting in CI environments.

Can I automate pytest installation and conftest.py template generation?

Yes, you can automate pytest installation and conftest.py template generation. The setup process automatically installs pytest extensions, creates the test structure, and configures pytest in your project to eliminate manual configuration errors.