OpenParable
Skip to content
← Back to skills

pytest Testing

Testing & Quality

pytest Testing is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Expert pytest framework for Python unit, integration, and functional testing

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/qa-testing-automation/skills/pytest-testing/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/pytest-testing, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

pytest Testing Skill

Overview

This skill provides expert-level capabilities for pytest-based testing, enabling comprehensive Python testing with fixtures, parametrization, and plugin integration.

Capabilities

Test Execution

  • Configure pytest with fixtures and markers
  • Execute tests with coverage collection
  • Parallel execution with pytest-xdist
  • Selective test running with markers and keywords

Fixture Management

  • Design reusable fixtures
  • Configure fixture scopes (function, class, module, session)
  • Implement fixture factories

Parametrization

  • Generate parametrized test cases
  • Data-driven testing patterns
  • Combine multiple parameter sets

Plugin Integration

  • Configure pytest plugins
  • Coverage integration with pytest-cov
  • HTML and JUnit XML report generation
  • Custom plugin development

Framework Integration

  • Django test client integration
  • Flask testing patterns
  • FastAPI test client usage

Target Processes

  • automation-framework.js - Test framework setup
  • api-testing.js - API test implementation
  • continuous-testing.js - CI/CD integration
  • shift-left-testing.js - Early testing integration

Dependencies

  • pytest - Test framework
  • pytest-cov - Coverage plugin
  • pytest-xdist - Parallel execution
  • pytest-html - HTML reports

Usage Example

{
  kind: 'skill',
  skill: {
    name: 'pytest-testing',
    context: {
      action: 'execute-tests',
      testPath: 'tests/',
      markers: ['unit', 'integration'],
      coverage: true,
      parallel: 4
    }
  }
}

Configuration

The skill respects pytest.ini, pyproject.toml, or setup.cfg configuration and can override settings as needed.