Systematic test suite generation that transforms source code into comprehensive, runnable pytest files. Analyzes function signatures, dependency graphs, and complexity hotspots to produce tests covering happy paths, boundary conditions, error states, and async flows — with properly scoped fixtures and focused mocks.
| references/pytest-patterns.md | Fixture scopes, parametrize, marks, conftest layout, built-in fixtures | Always | | references/mock-strategies.md | Mock decision tree, patch boundaries, assertions, anti-patterns | Target has external dependencies |
| references/async-testing.md | pytest-asyncio modes, event loop fixtures, async mocking | Target contains async code | | references/fixture-design.md | Factory fixtures, yield teardown, scope selection, composition | Test requires non-trivial setup |
행복한 경로, 엣지 케이스, 오류 조건, 설비 스캐폴딩, 모의 전략 및 비동기 패턴 등 포괄적인 pytest 테스트 스위트를 생성합니다. 함수 서명, 종속성 체인 및 복잡성 핫스팟을 분석하여 실행 가능하고 매개변수화된 테스트 파일을 생성합니다. 트리거: "테스트 생성", "테스트 작성", "이 함수 테스트", "이 클래스 테스트", "테스트 도구 모음 생성", "어떤 테스트를 작성해야 하는지", "pytest", "단위 테스트", "모의 전략", "테스트 방법", "테스트 적용 범위", "테스트 파일 작성". Python 함수, 클래스 또는 모듈이 주어지고 테스트를 생성하도록 요청받을 때 이 기술을 사용하십시오. 출처: mathews-tom/praxis-skills.