Test Optimization Patterns banner
classmethod classmethod

Test Optimization Patterns

Testing community

Description

--- description: テスト実行速度を改善するためのリファクタリングパターンとベストプラクティス集 --- # テスト最適化パターン集 テスト実行速度を改善するためのリファクタリングパターンとベストプラクティスをまとめたドキュメントです。 ## パターン一覧 | パターン | 効果 | 難易度 | リスク | |---------|------|--------|--------| | 1. データベーストランザクション | ★★★★★ | 低 | 低 | | 2. ファイルI/Oのモック化 | ★★★★★ | 低 | 低 | | 3. 外部APIのモック化 | ★★★★★ | 中 | 低 | | 4. beforeEach → beforeAll | ★★★☆☆ | 低 | 中 | | 5. 非同期待機の最適化 | ★★★☆☆ | 中 | 低 | | 6. テストデータファクトリー | ★★☆☆☆ | 中 | 低 | | 7. テストの粒度見直し | ★★★☆☆ | 高 | 中 | | 8. 並列実行可能な設計 | ★★★☆☆ | 中 | 中 | --- ##

Installation

Installs to ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns/SKILL.md

Terminal
mkdir -p ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns && curl -fsSL https://raw.githubusercontent.com/classmethod/tsumiki/HEAD/commands/test-optimization-patterns.md -o ~/.claude/skills/classmethod-tsumiki-test-optimization-patterns/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository