layered-testing
CommunityMaster Python testing, build robust apps faster.
System Documentation
What problem does it solves? This skill provides a structured, defense-in-depth testing strategy for Python, eliminating confusion about where to place tests and ensuring comprehensive coverage without sacrificing speed. It helps you build reliable applications by guiding you through effective testing practices.
Core Features & Use Cases:
- Four-Layer Strategy: Guides on unit tests for fakes, integration tests with mocking, business logic tests over fakes, and E2E tests, ensuring balanced coverage.
- Adapter Architecture: Explains ABC/Real/Fake/DryRun patterns for external system wrappers, making your code more modular and testable.
- Anti-Patterns & Workflows: Identifies common testing mistakes and provides step-by-step guides for adding features or fixing bugs, accelerating your development.
- Use Case: When adding a new feature, use this skill to determine the optimal testing layer, generate appropriate test structures using fakes, and ensure your tests are fast, reliable, and maintainable, reducing debugging time.
Quick Start: I'm adding a new feature to my Python service. Use the layered-testing skill to guide me on where to put my tests and what patterns to use for fast, reliable testing.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: layered-testing Download link: https://github.com/dagster-io/erk/archive/main.zip#layered-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.