Skip to content
Back to skills

Pytest Testing

ASecurity

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

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 2, 2026
ai-agentsjavascriptpythongojavabashfastapidjangoflasktestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill pytest-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pytest Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pytest Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-pytest-testing-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-pytest-testing-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pytest Testing
description: Expert pytest framework for Python unit, integration, and functional testing
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:qa-testing-automation]
  skillAreas: [skill-area:unit-testing, skill-area:integration-testing]
  roles: [role:qa-engineer, role:backend-engineer]
  workflows: [workflow:feature-development]
  topics: [topic:test-driven-development]

---

# 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

```javascript
{
  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.

Files in this skill

  • README.md666 B
  • SKILL.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.