What problem does it solve?
This Skill helps you design Python test suites that catch bugs early and stay trustworthy over time through practical pytest usage, TDD discipline, fixtures, parametrization, mocking, and measurable coverage goals.
Core Features & Use Cases
- TDD workflow: Guides you through RED → GREEN → REFACTOR to drive correct behavior from the start.
- pytest fundamentals: Covers assertions, exception testing, fixtures (including scopes and parametrized/auto-use), and conftest-based shared setup.
- Robust test coverage: Establishes coverage targets (80%+ overall, 100% on critical paths) and provides standard commands to enforce them.
- Use case: When shipping a Python service, use this guidance to create unit and integration tests that validate core logic, verify edge cases, mock external dependencies, and ensure critical paths remain fully covered.
Quick Start
Ask your AI to generate a pytest suite using TDD, with fixtures for shared setup, parametrized test cases for input variation, mocked external calls, and a coverage run targeting 80%+ with 100% on critical paths.