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。