Advanced Pytest Patterns
Implements sophisticated Python testing workflows using custom markers, parallel execution with xdist, and advanced fixture architecture.
The Advanced Pytest Patterns skill empowers Claude to architect high-performance, scalable test suites for complex Python applications. It provides expert guidance on implementing custom pytest plugins, hooks, and categorization markers to optimize CI/CD pipelines. By leveraging pytest-xdist for parallel execution and factory fixture patterns for isolated resource management, this skill ensures that large-scale test environments remain maintainable, fast, and free from common anti-patterns like global state leakage or inefficient resource cleanup.
주요 기능
0169 GitHub stars
02Custom marker implementation for intelligent test categorization and selective CI filtering
03Advanced pytest-xdist configuration for parallelized test execution and worker isolation
04Optimization strategies for test collection and session-scoped resource management
05Reusable factory fixture patterns for scalable and clean resource creation
06Custom plugin and hook development for tailoring the test lifecycle
사용 사례
01Building a custom test infrastructure with specialized hooks for enterprise applications
02Optimizing slow-running test suites by distributing execution across multiple CPU cores
03Implementing domain-specific testing markers to separate smoke, integration, and performance tests