Babysitter pytest Testing
Expert pytest framework for Python unit, integration, and functional testing
install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/qa-testing-automation/skills/pytest-testing" ~/.claude/skills/a5c-ai-babysitter-pytest-testing && rm -rf "$T"
manifest:
library/specializations/qa-testing-automation/skills/pytest-testing/SKILL.mdsource content
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
- Test framework setupautomation-framework.js
- API test implementationapi-testing.js
- CI/CD integrationcontinuous-testing.js
- Early testing integrationshift-left-testing.js
Dependencies
- Test frameworkpytest
- Coverage pluginpytest-cov
- Parallel executionpytest-xdist
- HTML reportspytest-html
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.